I have an angular application in which, there is a service having 3 types of variables: simple boolean, behaviorSubject of type boolean and an Object with the property of type number.
I am updating all the 3 variables from a child component using the service's getter-setter methods. Now I want those updated changes of service variables in my parent component without emitting change from child component. It is working fine for the object and behaviorSubject, but it is not reflecting that change in the simple boolean variable.
So, what is the difference among these 3, that can lead to this behaviour?
I have created a simple stackblitz demo to demonstrate the above. here's the link: Stackblitz