Yep, it's a duplicate of this: Angular 4+ ngOnDestroy() in service - destroy observable
This question is maybe violating the terms, since I am asking for advice/opinions/best-practices.
My questions is: Should I have observers and subscriptions in services? I can subscribe in the construcor, but in services there is no onDestroy()-Method to clear my subscriptions.
For example: How do I go about watching a value in a redux-store, which is needed within a service? The service is used by several components. Should the service watch the store? Or should the components watch the store and provide the value in question with every request to the service?
There is ngOnDestroy in service files. ngOnInit is missing in service files.
Angular 4+ ngOnDestroy() in service - destroy observable [ Refer here ]