Project

General

Profile

1
/**
2
 * @license
3
 * Copyright Google Inc. All Rights Reserved.
4
 *
5
 * Use of this source code is governed by an MIT-style license that can be
6
 * found in the LICENSE file at https://angular.io/license
7
 */
8
import { InjectionToken } from './di';
9
import { ComponentRef } from './linker/component_factory';
10
/**
11
 * A DI Token representing a unique string id assigned to the application by Angular and used
12
 * primarily for prefixing application attributes and CSS styles when
13
 * {@link ViewEncapsulation#Emulated} is being used.
14
 *
15
 * If you need to avoid randomly generated value to be used as an application id, you can provide
16
 * a custom value via a DI provider <!-- TODO: provider --> configuring the root {@link Injector}
17
 * using this token.
18
 * @experimental
19
 */
20
export declare const APP_ID: InjectionToken<string>;
21
export declare function _appIdRandomProviderFactory(): string;
22
/**
23
 * Providers that will generate a random APP_ID_TOKEN.
24
 * @experimental
25
 */
26
export declare const APP_ID_RANDOM_PROVIDER: {
27
    provide: InjectionToken<string>;
28
    useFactory: () => string;
29
    deps: any[];
30
};
31
/**
32
 * A function that will be executed when a platform is initialized.
33
 * @experimental
34
 */
35
export declare const PLATFORM_INITIALIZER: InjectionToken<(() => void)[]>;
36
/**
37
 * A token that indicates an opaque platform id.
38
 * @experimental
39
 */
40
export declare const PLATFORM_ID: InjectionToken<Object>;
41
/**
42
 * All callbacks provided via this token will be called for every component that is bootstrapped.
43
 * Signature of the callback:
44
 *
45
 * `(componentRef: ComponentRef) => void`.
46
 *
47
 * @experimental
48
 */
49
export declare const APP_BOOTSTRAP_LISTENER: InjectionToken<((compRef: ComponentRef<any>) => void)[]>;
50
/**
51
 * A token which indicates the root directory of the application
52
 * @experimental
53
 */
54
export declare const PACKAGE_ROOT_URL: InjectionToken<string>;
(4-4/22)