From f9ecb94300e801abbc793216960aa41a5bf24d93 Mon Sep 17 00:00:00 2001 From: Mathieu Nayrolles Date: Thu, 18 May 2017 21:41:03 -0400 Subject: [PATCH] refactor(translate): Inline initialization for child translate module --- src/app/app.module.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 2d523e9..f48f097 100755 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -82,11 +82,7 @@ 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, @@ -94,6 +90,5 @@ export class AppModule { }, missingTranslationHandler: { provide: MissingTranslationHandler, useClass: MyMissingTranslationHandler }, }); - } } \ No newline at end of file