I had the opportunity to attend this years ng-conf which took place on the 1st-3rd of May in Salt Lake City. How was it? Was it worth ~20 hours of traveling there and back from Central Europe?
What a silly question, of course, it was. 😄
In this article we will show how two unrelated components in Angular can pass some data around.
There are several ways how Angular components can pass data around:
@ContentChildrenand directly calling component’s API
First two methods can only be used when we have parent — child relationship between our components — one of the components is the parent node in the DOM:
When we have routed components, then it looks like…