Angular Component Interaction

Veröffentlicht am: 20 April 2020
auf dem Kanal: Web Developer
7
1

#Angular Component Interaction

Component interaction is the best features of angular.
When we developing the bigger application, we will create the multiple components. On that time, we may create some reusable component. In that case some of that component required some argument and sometime trigger the event of parent component from child component. In this case called component interaction.
In angular everything is possible. Like,
1. Pass data from Parent to Child Component
2. Intercept the property changes with ngOnChanges()
3. Parent listens for child event.
4. Parent calls an @ViewChild()
@Input
This decorator is using for read the parameter values.
@Output
This decorator is using for trigger the Parent Component function from the child component,
we are using this decorator with the EventEmitter.
@ViewChild
This decorator is using for, do something on Child Component from Parent Component, after the Child Component completely loaded.
ngOnChanges()
By using this We can easily identify the changes on the values.


Auf dieser Seite können Sie das Online-Video Angular Component Interaction mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Web Developer 20 April 2020 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 7 Mal angesehen und es wurde von 1 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!