Skip to content

Instantly share code, notes, and snippets.

@bodrovis
Created December 27, 2018 15:57
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 bodrovis/be4f6991d054971e2b2870b0799716d0 to your computer and use it in GitHub Desktop.
Save bodrovis/be4f6991d054971e2b2870b0799716d0 to your computer and use it in GitHub Desktop.
// imports and your loader...
@NgModule({
declarations: [AppComponent],
entryComponents: [],
imports: [
BrowserModule,
IonicModule.forRoot(),
AppRoutingModule,
HttpClientModule, // <--- add this
TranslateModule.forRoot({ // <--- add this
loader: { // <--- add this
provide: TranslateLoader, // <--- add this
useFactory: (createTranslateLoader), // <--- add this
deps: [HttpClient] // <--- add this
} // <--- add this
}) // <--- add this
],
providers: [
StatusBar,
SplashScreen,
{ provide: RouteReuseStrategy, useClass: IonicRouteStrategy }
],
bootstrap: [AppComponent]
})
export class AppModule { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment