angular2
Version:
Angular 2 - a web framework for modern web apps
28 lines (27 loc) • 1.08 kB
TypeScript
import { OpaqueToken, Provider } from 'angular2/src/core/di';
/**
* A DI Token representing a unique string id assigned to the application by Angular and used
* primarily for prefixing application attributes and CSS styles when
* {@link ViewEncapsulation#Emulated} is being used.
*
* If you need to avoid randomly generated value to be used as an application id, you can provide
* a custom value via a DI provider <!-- TODO: provider --> configuring the root {@link Injector}
* using this token.
*/
export declare const APP_ID: OpaqueToken;
/**
* Providers that will generate a random APP_ID_TOKEN.
*/
export declare const APP_ID_RANDOM_PROVIDER: Provider;
/**
* A function that will be executed when a platform is initialized.
*/
export declare const PLATFORM_INITIALIZER: OpaqueToken;
/**
* A function that will be executed when an application is initialized.
*/
export declare const APP_INITIALIZER: OpaqueToken;
/**
* A token which indicates the root directory of the application
*/
export declare const PACKAGE_ROOT_URL: OpaqueToken;