How we can establish communication between two components ? In This video I am explaining all 7 possible ways to create interaction between two angular components.
You will find the code here : https://github.com/beingsagir/angular-component-interactions
- 3:05 Pass data from parent to child with input binding
- 8:30 Intercept input property changes with a setter
- 13:15 Intercept input property changes with ngOnChanges()
- 19:09 Parent listens for child event
- 23:25 Parent interacts with child via local variable
- 27:27 Parent calls an @ViewChild()
- 31:15 Parent and children communicate via a service
- Pass data from parent to child with input binding
- Intercept input property changes with a setter
- Intercept input property changes with ngOnChanges()
- Parent listens for child event
- Parent interacts with child via local variable
- Parent calls an @ViewChild()
- Parent and children communicate via a service
#angular #javascript #programming #developer #web-development