2018-02-12 15:23:46 -08:00
|
|
|
/**
|
|
|
|
* @license
|
|
|
|
* Copyright Google Inc. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
|
|
* found in the LICENSE file at https://angular.io/license
|
|
|
|
*/
|
|
|
|
|
|
|
|
import {Type} from '../type';
|
|
|
|
import {InjectionToken} from './injection_token';
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2018-03-07 15:10:38 -08:00
|
|
|
* An internal token whose presence in an injector indicates that the injector should treat itself
|
|
|
|
* as a root scoped injector when processing requests for unknown tokens which may indicate
|
|
|
|
* they are provided in the root scope.
|
2018-02-12 15:23:46 -08:00
|
|
|
*/
|
2018-03-07 15:10:38 -08:00
|
|
|
export const APP_ROOT = new InjectionToken<boolean>(
|
|
|
|
'The presence of this token marks an injector as being the root injector.');
|