How do components communicate with each other in angular 2?
Answer / Soniya Sharma
Components in Angular 2 can communicate through properties, events, and services. To pass data from a parent component to a child component, you can use properties (Input decorator). For one-way communication from a child component to its parent, you can use events (@Output decorator). Services can be used for shared functionality across multiple components.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the types of controller?
How to load select box during page initialization using AngularJS?
Explain ng-model directive?
Name the key features of angular js?
Explain ng-init directive ?
How are performance improvements on the core in Angular 8?
What is linking function? What are post linking and pre-linking functions?
How to share information between controllers in AngularJS?
How do I know if npm is installed?
What is the meaning of component lifecycle in angular 2?
Is angular js in demand?
List at down the ways in which you can communicate between applications modules using core angular functionality.