@angular/core#APP_BOOTSTRAP_LISTENER TypeScript Examples

The following examples show how to use @angular/core#APP_BOOTSTRAP_LISTENER. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: machine-learning.module.ts    From sba-angular with MIT License 6 votes vote down vote up
// See https://github.com/angular/angular/issues/19698
// @dynamic
@NgModule({
    imports: [
        CommonModule,
        BsSearchModule
    ],
    declarations: [
        DwellTime
    ],
    exports: [
    ],
    providers: [
        {provide: APP_BOOTSTRAP_LISTENER, useFactory: AppBootstrapListener, deps: [MlAuditService], multi: true},
        {provide: HTTP_REQUEST_INITIALIZERS, useFactory: HttpRequestListener, deps: [MlAuditService], multi: true},
    ]
})
export class MLModule {
}