It is necessary to do so that when a certain property is changed in a service, a certain function is executed in another component.
1 answer
When the property changes in the service, you need to issue an event. In the component subscribe to this event and perform the function. See here https://angular.io/api/core/EventEmitter for details.
|