Skip to content

Commit

Permalink
refactor(translate): Inline initialization for child translate module
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuNls committed May 19, 2017
1 parent aa98b56 commit f9ecb94
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,18 +82,13 @@ export class MyMissingTranslationHandler implements MissingTranslationHandler {
})
export class AppModule {

static translateModule: any;

constructor() {

AppModule.translateModule = TranslateModule.forChild({
static translateModule: any = TranslateModule.forChild({
loader: {
provide: TranslateLoader,
useFactory: HttpLoaderFactory,
deps: [Http]
},
missingTranslationHandler: { provide: MissingTranslationHandler, useClass: MyMissingTranslationHandler },
});
}

}

0 comments on commit f9ecb94

Please sign in to comment.