Created
December 27, 2018 15:57
-
-
Save bodrovis/be4f6991d054971e2b2870b0799716d0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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