Custom event Binding: @Output Decorator | Data Binding | Angular 12+

  Рет қаралды 44,305

procademy

procademy

Күн бұрын

In this lecture, you are going to learn about custom event binding in angular. Using custon event binding, we can pass data from child component to parent component class.
To do this, we create a custom event and we bind it with @Output decorator. Then we raise the event and in parent class we create a method to handle that event.
Let's understand custom event binding with an example.

Пікірлер: 39
@jjuliefrance
@jjuliefrance Жыл бұрын
Yes, top of the best channel on KZbin ! Each lecture is a master one.
@PratikP-j1f
@PratikP-j1f Жыл бұрын
Thanks for creating such beautiful lecture series keep it up regular
@iamnoob7593
@iamnoob7593 Жыл бұрын
Superb man , We people have to support such amazing content creaters
@PratikP-j1f
@PratikP-j1f Жыл бұрын
Teacher is indeed a gem! Never hesitate to appreciate a thing that add value to your life@@iamnoob7593
@bhupendrasingh8570
@bhupendrasingh8570 Жыл бұрын
I watched each and every video without skipping and i am going to watch whole playlist.i just want to say thank you very very much for this playlist your way of explanation is awesome.i gain confidence after watching your video..this is top of the best channel on KZbin .i learnt alot from you sir..huge huge respect for you🙌
@ZainJahangir-oq5hy
@ZainJahangir-oq5hy Жыл бұрын
yeah same as me
@salsal-dd1dq
@salsal-dd1dq Жыл бұрын
Best explaining style by far, even better than paid angular courses I watched before. Keep up the great work Sir!
@andyserrato
@andyserrato 10 ай бұрын
Thanks! this is a well crafted course
@RamanaVenkata-tx9tg
@RamanaVenkata-tx9tg Жыл бұрын
Top of the angular course in world
@neuroscience5024
@neuroscience5024 5 ай бұрын
I bought the most popular Angular course on Udemy 2 months ago but now I feel like I wasted my time on that course. Wow man. You are amazing. Such nice and simple explanations of concepts. Hats off to you. You are an amazing teacher. Thank you very much for creating such an amazing course.
@mohammedabdulaziz3658
@mohammedabdulaziz3658 2 жыл бұрын
Dynamic example sir..thank you. Awesome explanation, even I don't know some core point of coding & you are covering all those things.
@lacertezzadellapena
@lacertezzadellapena 2 жыл бұрын
It works!!! Thank you so much!
@silvertoothdevlog6102
@silvertoothdevlog6102 Жыл бұрын
Up until this topic I was getting everything but this one after that @output... I will have to watch this video a few more times apparently
@devadharshinib8070
@devadharshinib8070 2 жыл бұрын
Nice Explanation , Thank you sir
@GouravKumar-fo1jo
@GouravKumar-fo1jo Жыл бұрын
Worth watching sir
@lacertezzadellapena
@lacertezzadellapena 2 жыл бұрын
Just a question, @proacademy. Could you please explain why in filterRadioButtonSelectionChanged: EventEmitter = new EventEmitter(); the type of the property (EventEmitter) has ''? Many thanks in advance
@procademy
@procademy 2 жыл бұрын
EventEmitter is a class of generic type. In the bracket's we specify the type of data which the event is going to emit. In our example, we emmited event data of type string that's why we specified . If we wanted to emit data of number type, then we would have specified . In simple terms, an event can emit data of any type, but it is mandatory to specify in advance, which type of data event will emit. This is for type safety. If we specify that our event will emit data of string type, but in actual it emits data of number type, typescript will throw an error. In this way, it provides type safety. Hope this answers your question. Thanks :)
@lacertezzadellapena
@lacertezzadellapena 2 жыл бұрын
@@procademy it does, thank you for clarifying! This course is so well thought! Thank you for your help
@shubhamkumar-re8xx
@shubhamkumar-re8xx 2 жыл бұрын
@procademy Please can you explain whether only using course.type with ngIf directive at line no. 11 in course.component.html would have worked or not? As from my point of view course.type do contain 'All' also.
@ezzybrezzy-xl3wd
@ezzybrezzy-xl3wd Жыл бұрын
course.type consists of type='free' and type='premium', there is not type as all!:)
@ZainJahangir-oq5hy
@ZainJahangir-oq5hy Жыл бұрын
excellent course
@HealthChampion
@HealthChampion 7 ай бұрын
You are awesome. :)
@helpinghands6475
@helpinghands6475 Жыл бұрын
World best course
@ezzybrezzy-xl3wd
@ezzybrezzy-xl3wd Жыл бұрын
Hello sir I have a doubt here @21:11 if I select free in the radio button and my 2nd condition in the ngIf is true, how can the HTML understand and pick only the free courses and display it?
@rickyarya7673
@rickyarya7673 Жыл бұрын
Consider this as if statement inside a for loop. And the output will be shown based on the if condition. Basically what happens is for loop will run for each element in the array and, if statement will check for each element whether it satisfy the condition or not. If the condition is true than it will print that particular course object.
@ezzybrezzy-xl3wd
@ezzybrezzy-xl3wd Жыл бұрын
@@rickyarya7673 Thank you
@GnorL
@GnorL Жыл бұрын
unable to get the value in the parent component through $event, help me
@DanEllis
@DanEllis 2 жыл бұрын
You don't need the trailing slashes on your input elements. That was required for XHTML to keep the document well-balanced. It has no meaning in HTML 5.
@sachinvarghese2223
@sachinvarghese2223 Жыл бұрын
I think (ngModelChange) is better than (change) , so that less code is needed
@AnkitSingh-sy6sb
@AnkitSingh-sy6sb 2 жыл бұрын
Hi Sir, I did follow your code but my filter radio buttons are not working only all courses button is working, If I'm clicking on free courses and premium courses I'm getting blank page. Please help !!
@procademy
@procademy 2 жыл бұрын
Have you made sure that the case of your value attributes of radio button matches the case you have specified in ngIf?? I suspect that might be the problem
@user-oi1ui9rm7x
@user-oi1ui9rm7x Жыл бұрын
@@procademy i have the same problem because i code "course.type" with quotes. When i remove quotes, all working.
@sivaprasad10410
@sivaprasad10410 2 жыл бұрын
can u share json file pf this project
@theegalasuryamanoj4492
@theegalasuryamanoj4492 2 жыл бұрын
please share git hub link
@procademy
@procademy 2 жыл бұрын
github.com/manojjha86/complete-angular-13-course
@Macrumik500
@Macrumik500 Жыл бұрын
Your teaching skill is good but you have bad habit of repeating same thing again and again and do irritate most of the time. Just try to watch your own video after recording and before uploading.
@salsal-dd1dq
@salsal-dd1dq Жыл бұрын
sometimes he's repeating to make sure that the audience got his point. The video is not made for you only, and instead of complaining, you can always skip
@PratikP-j1f
@PratikP-j1f Жыл бұрын
Man o man you are Jwell ! what a beautiful series that too free of cost however I believe I am obliged to pay you, consider it encouragement for making more such videos ! Please send me Your UPI ID, I would love to contribute RS 500
@above___
@above___ Жыл бұрын
KZbin has a "thanks" button you can use that to give money 😄
Implementing Search Functionality | Data Binding | Angular 12+
13:44
What is Child Component | Components | Angular 12+
11:46
procademy
Рет қаралды 46 М.
Dad gives best memory keeper
01:00
Justin Flom
Рет қаралды 23 МЛН
大家都拉出了什么#小丑 #shorts
00:35
好人小丑
Рет қаралды 89 МЛН
А ВЫ ЛЮБИТЕ ШКОЛУ?? #shorts
00:20
Паша Осадчий
Рет қаралды 5 МЛН
Just Give me my Money!
00:18
GL Show Russian
Рет қаралды 1,2 МЛН
Content Projection in Angular - Complete Guide (Beginners/Advanced)
26:18
What is Observable | Observables | Angular 12+
14:16
procademy
Рет қаралды 154 М.
Angular Life Cycle Hooks | Lifecycle Hooks | Angular 12+
18:47
Subjects in RxJS | Observables | Angular 12+
16:14
procademy
Рет қаралды 55 М.
Demystifying Angular Two Way Binding (2023)
11:40
Decoded Frontend
Рет қаралды 12 М.
Dad gives best memory keeper
01:00
Justin Flom
Рет қаралды 23 МЛН