7 ways to Establish Communication Between Two Angular Components

Sagiruddin Mondal
2 min readOct 13, 2020

--

  1. 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

--

--

Sagiruddin Mondal
Sagiruddin Mondal

Written by Sagiruddin Mondal

When my science will force you to ride a roller coaster, my art will be there to sit beside you.

No responses yet