Skip to content

Instantly share code, notes, and snippets.

@sagar-ganatra
Last active June 23, 2019 11:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sagar-ganatra/0cdd1c15ceb8313f82b1255c73e561c2 to your computer and use it in GitHub Desktop.
Save sagar-ganatra/0cdd1c15ceb8313f82b1255c73e561c2 to your computer and use it in GitHub Desktop.
import { BrowserModule } from '@angular/platform-browser';
import { NgModule, APP_INITIALIZER } from '@angular/core';
import { AppComponent } from './app.component';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule
],
providers: [
{
provide: APP_INITIALIZER,
useFactory: initApp,
multi: true
}
],
bootstrap: [AppComponent]
})
export class AppModule { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment