// 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