@angular/core

APP_INITIALIZER

constant
Deprecated

A DI token that you can use to provide one or more initialization functions.

  
    const APP_INITIALIZER: InjectionToken<readonly (() => void | Observable<unknown> | Promise<unknown>)[]>;
  
  
Jump to details