@Input and @output in Angular 10 | Communicate from Child to Parent Component - Angular

preview_player
Показать описание
In this video we will learn how to communicate from child to parent component using @Output() decorator in Angular applications
Angular is a component based framework and when we talk about multiple components communication across components is also required.
In our previous video we have learnt how to pass data from parent component to child component using @Input() decorator . you can watch previous video by clicking on this link

Now if you want to pass some data from child to parent component this type of communication is Event based communication. So in child component we need to create one variable and that variable will be of type EventEmitter class and then decorate this variable with @Output() decorator.

So the variable defined here will act like a publisher and from parent event we need to subscribe for this event by calling it

If you liked my channel , subscribe to it and like my videos. For any queries ask you question in comment section
Рекомендации по теме
Комментарии
Автор

Thanks for sharing the Informative video

haleemakhatoon
Автор

Amazing information we'll done perfectly

editingtutorial
Автор

Great topic .Good explaination.thkx for sharing

sultanosman
Автор

Good upload stay blessed
Nice sharing

gujratianslife
Автор

So informative video Keep sharing more awesome information

editingplace
Автор

Well done, nice tutorial of data transfer

mystoryghar