Comment Comment by pas Angular has built in dependency injection, recommends to use services to encapsulate state. Built-in services use RxJs for propagating changes by default, and following that pattern gets you very far. Especially for an enterprise app.https://angular.io/guide/singleton-services parent pas 5 years ago
https://angular.io/guide/singleton-services