I have three components : parent (P) and two children (C1) and (C2) (they are both children of P component and they are not nested) in parent template it looks like
<c1-component></c1-component>
<c2-component></c2-component>
I have a variable myVar in C1 (number), which I want decrease and increase in C2 component and give a new value of this variable back to C1 (so, I want to pass not a function, but variable). How could I pass this variable from C1 to C2?
I would like to solve this problem without shared services.