AngularJavaScript Frameworks

Angular: Component Communications (Child to Child)

How to pass data from sibling components (transitive). One method is to use a parent component to act as the mediator and pass the data from one child to another child. The process is a combination of the two methods shown above between Parent 🠚 Child and Child 🠚 Parent.

ChildA 🠚 Parent 🠚 ChildB
ChildA 🠘 Parent 🠘 ChildB
ChildA ⬌ Parent ⬌ ChildB

Note: In Angular, the Child component has no way of knowing its parent component.

Verified by MonsterInsights