7 ways to Establish Communication Between Two Angular Components
2 min readOct 13, 2020
- Pass data from parent to child with input binding
2. Intercept input property changes with a setter
3. Intercept input property changes with ngOnChanges()
4. Parent listens for child event
5. Parent interacts with child via local variable
6. Parent calls an @ViewChild()
7. Parent and children communicate via a service