Actions
Feature #46030
closedmgr/dashboard: We should provide all services in root
% Done:
0%
Source:
Tags:
Backport:
Description
With the current approach of providing in a module it is still possible to create 2 instances of a service that is supposed to be a singleton.
We should use the suggested providedIn configuration:
Beginning with Angular 6.0, the preferred way to create a singleton service is to set providedIn to root on the service's @Injectable() decorator. This tells Angular to provide the service in the application root.
https://angular.io/guide/singleton-services
Actions