Answer the question
In order to leave comments, you need to log in
How to pass variable from one child component to another in Angular2?
There are 3 components: parent (P) and 2 children (C1) and (C2) (C1 and C2 are both child components for P and they are not nested)
Template for P looks something like this
<c1-component></c1-component>
<c2-component></c2-component>
Answer the question
In order to leave comments, you need to log in
Business logic should be in services, and in components only UI, then there will be no such problems
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question