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
Updated by Tiago Melo almost 4 years ago
- Status changed from In Progress to Fix Under Review
- Pull request ID set to 35586
Updated by Lenz Grimmer almost 4 years ago
- Status changed from Fix Under Review to Resolved
- Target version set to v16.0.0
Updated by Ernesto Puerta about 3 years ago
- Project changed from mgr to Dashboard
- Category changed from 165 to UI
Actions