Answer the question
In order to leave comments, you need to log in
Optimal way to work with router-outlet?
Angular 4.
<h2>{{dynamicHeaderFromPage}}</h2>
<router-outlet>SomeContentFromDynamicPage</router-outlet>
Answer the question
In order to leave comments, you need to log in
As for me, if there are components that are not hierarchically connected, then in order to exchange data between them, you need to use which thread the data bus. There are two options here - either the parent receives the data and shares it with the children through the bus, or the child does the same.
It's like no other way.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question