@angular/core
Version:
Angular - the core framework
21 lines (20 loc) • 551 B
TypeScript
import { InjectionToken } from './di';
/**
* A function that will be executed when an application is initialized.
* @experimental
*/
export declare const APP_INITIALIZER: InjectionToken<(() => void)[]>;
/**
* A class that reflects the state of running {@link APP_INITIALIZER}s.
*
* @experimental
*/
export declare class ApplicationInitStatus {
private appInits;
private resolve;
private reject;
private initialized;
readonly donePromise: Promise<any>;
readonly done: boolean;
constructor(appInits: (() => any)[]);
}