feat(core): Adds DI support for providedIn: 'platform'|'any'
(#32154)
Extend the vocabulary of the `providedIn` to also include `'platform'` and `'any'`` scope. ``` @Injectable({ providedId: 'platform', // tree shakable injector for platform injector }) class MyService {...} ``` PR Close #32154
This commit is contained in:
@ -14,5 +14,4 @@ import {InjectionToken} from './injection_token';
|
||||
* as a root scoped injector when processing requests for unknown tokens which may indicate
|
||||
* they are provided in the root scope.
|
||||
*/
|
||||
export const APP_ROOT = new InjectionToken<boolean>(
|
||||
'The presence of this token marks an injector as being the root injector.');
|
||||
export const INJECTOR_SCOPE = new InjectionToken<'root'|'platform'|null>('Set Injector scope.');
|
||||
|
Reference in New Issue
Block a user