Тёмный

#27 @Output: Custom Event Binding | Angular Components & Directives | A Complete Angular Course 

procademy
Подписаться 56 тыс.
Просмотров 29 тыс.
50% 1

In this lecture you will learn how to create custom events in the component class and how to bind them using @Output decorator. We can use custom event binding to pass data from child component to parent component.
ASP.NET Core GitHub Repo: github.com/man...
NODE JS Course GitHub Repo: github.com/man...
ANGULAR 16 Course GitHub Repo: github.com/man...

Опубликовано:

 

11 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 41   
@josetrauler721
@josetrauler721 11 месяцев назад
The first rather difficult lesson in the series. At the first viewing, I begin to get confused in the exchange of data between components. In my opinion, it is much easier to implement a filter in the react.
@subramaniganapathi3323
@subramaniganapathi3323 Месяц назад
Very nicely explained. thanks.
@nastyaandreeva8251
@nastyaandreeva8251 8 месяцев назад
Great video and explanation 🔥
@GauthamHC99
@GauthamHC99 9 месяцев назад
React is like why Angular why ?? this angular concept is so confusing to understand. I think I need to rewatch this, but this series is great, making learning Angular smoother.
@Mr.gameBoy-c6e
@Mr.gameBoy-c6e 8 месяцев назад
haha same for me these lengthy code but in React we have props for complex we have multiple way of state management but also by learning from here I don't find angular tough except we have to write too much code this is my opinion
@ksas323
@ksas323 4 месяца назад
To clarify: When [value] = [(ngModel)] the radio is selected.
@senthamarai_kannan.
@senthamarai_kannan. 11 месяцев назад
writing code is neat and clean. Excellent !
@sherlocksummer6284
@sherlocksummer6284 5 месяцев назад
Very good
@Mr.gameBoy-c6e
@Mr.gameBoy-c6e 8 месяцев назад
I don't know what to say sir but thanks in a million
@yasinshirwan407
@yasinshirwan407 11 месяцев назад
Excellent sir .....❤
@Charlesfrostman
@Charlesfrostman Месяц назад
This is how I break down this concept for easier understanding: The Child component class has three key parts, two are used in its view template and one used in the Parent view template. Child Class parts 1. A declared property of an EventEmitter instance, decorated with @Output() 2. A declared data property to hold the current state 3. A class method to handle events Utilization in Child View 1. Two-way property binding with ngModel directive (i.e., on a HTML tag) to the declared data property 2. Event binding (i.e., change event on the same HTML tag) calling the class method which handles events Parent component class has one key part that is used in conjunction with the remaining key part from the Child component class. Both are used in the Parent view. Parent Class Part 1. A callback method which acts as the event handler, receiving and processing emitted data. Utilization in Parent View 1. Event binding on the selector of the child component (i.e., app-child), to the declared property with the EventEmitter instance. This declared property is from the child component class and is the custom event. 2. Assignment of the callback method which process emitted data, to the custom event. This method should be defined in the Parent component class.
@sohamajgaonkar3119
@sohamajgaonkar3119 10 месяцев назад
Mast Samjhaya
@Manojkumar-vl6hi
@Manojkumar-vl6hi 4 месяца назад
could you please upload a complete project upto this class in the repo, it would be very helpful to keep on the track our learning.
@CRAETION_
@CRAETION_ Год назад
super clear and very detailed tutorials. thanks so much!
@mohamadnourbader1068
@mohamadnourbader1068 5 месяцев назад
3:22 you said, " ngModule is structure directive like ngCass and ngStle"!! I think you mean ngIf and ngFor?
@tharindulakshan9700
@tharindulakshan9700 10 месяцев назад
Excellent !, where is the video-related code repo ?
@sasidharanworldline
@sasidharanworldline 8 месяцев назад
how to get the exact code that you have used in this video , you have provided the repo link , but the code there is different from what you have used here , if you could guide me it would be helpful. cheers!!!. Great explanation btw
@jaypatel2471
@jaypatel2471 9 месяцев назад
@procademy Introduction to Angular.pdf is not available, it's showing Unable to render code block...
@ruman-demo
@ruman-demo 8 месяцев назад
Hi @procademy, some of the important files are missing in the repo such as filter.component.ts and product.component.ts files , please update asap , thanks
@kareem7236
@kareem7236 7 месяцев назад
how is this couch? where do i find more courses for him ? anybody knows ?
@sumitchakraborty9680
@sumitchakraborty9680 5 месяцев назад
@procademy why the git is not updated?
@sumanlamichhane369
@sumanlamichhane369 9 месяцев назад
02:08 @procademy what would be the value if we have four radio buttons in our template. Here we have 3 so we went with 'all' 'true' and 'false' but what about the fourth one??
@Mr.gameBoy-c6e
@Mr.gameBoy-c6e 8 месяцев назад
It's up to you whatever you want to name. value is used to store the data from HTML Forms this is what I know
@anasshaikh9052
@anasshaikh9052 Год назад
3:17 ngModel is an attribute directive right?
@procademy
@procademy Год назад
That's right
@GongatiVenkateswarlu
@GongatiVenkateswarlu 7 месяцев назад
Hiii bro, where is this source code of this @Output() decorator....
@Abhishek-tv8px
@Abhishek-tv8px 7 месяцев назад
Where to find codebase of this video.
@suleymanyalman8077
@suleymanyalman8077 2 месяца назад
you said that "ngModel" is a Built-in structural directive like ngStyle and ngClass, but actually ngStyle and ngClass are not structural directive ! They are attribute directive
@gamarano
@gamarano 6 месяцев назад
property I do not understand how the property 'selectedFilteredRadioButton' became the standard selector of the radio bullet simply by asigning the value of the tag to it. Can someone please enlighten me?
@Clairvoyancerion
@Clairvoyancerion 5 месяцев назад
From Angular documentation: All inputs controlled by ngModel (including those of type radio) will use the value of their name attribute to determine the property under which their NgModelController will be published on the parent FormController. Simply put, I think ngModel can recognize what is the element that they are in, and behave accordingly.
@lijinsp007
@lijinsp007 6 месяцев назад
Sir, there should be some more clarity
@jaypatel2471
@jaypatel2471 9 месяцев назад
please upload this code in repo.
@sita-wx9mt
@sita-wx9mt 8 месяцев назад
bit confusing this time.became more clear when watched again
@procademy
@procademy 8 месяцев назад
Once you will watch it few more times, it will become clear. This concept is a little bit confusing for beginners. I also did not understood this concept in first attempt when i was learning angular :)
@sita-wx9mt
@sita-wx9mt 8 месяцев назад
@@procademy correct, it is more clear and understandable when watched it again.thanks for great series!!
@SushilGuptaa
@SushilGuptaa 7 месяцев назад
@@procademyMy filter event is not working.This did not emit event
@sahilpatil6573
@sahilpatil6573 3 месяца назад
​@@SushilGuptaa mine also not working got any solution?
@somewhere_in_bharat
@somewhere_in_bharat Год назад
instead of ngIf you could have created a function like filteredProject and basically filter products from the selectedfilter value
@rahathasan5971
@rahathasan5971 6 месяцев назад
SIR source code?
@sakkamouid3343
@sakkamouid3343 4 месяца назад
i guess you didn't use the @output
@vigneshs1852
@vigneshs1852 5 месяцев назад
react laughing in the corner...
Далее
Hurricane Milton: Storm damage in Fort Myers, Fla.
01:05
Bro think he the MC.. 😂👊🔥
00:20
Просмотров 13 млн