From 3517e796f650b8aed52165c1a5905456f54033ef Mon Sep 17 00:00:00 2001 From: fengxiang <110431245@qq.com> Date: Wed, 10 Jan 2018 14:31:40 +0800 Subject: [PATCH] 项目路径 配置,以适应可能的框架更新 --- src/app/app.module.ts | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 84691c5..a5e4a7d 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -1,10 +1,10 @@ +import { DateService } from '@business/services/util/date.service'; import { BrowserModule } from '@angular/platform-browser'; import { NgModule, LOCALE_ID, APP_INITIALIZER, Injector } from '@angular/core'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { TranslateModule, TranslateLoader, TranslateService } from '@ngx-translate/core'; import { TranslateHttpLoader } from '@ngx-translate/http-loader'; import { HttpClient, HTTP_INTERCEPTORS } from '@angular/common/http'; - import { CoreModule } from './core/core.module'; import { SharedModule } from './shared/shared.module'; import { AppComponent } from './app.component'; @@ -20,6 +20,7 @@ import { registerLocaleData } from '@angular/common'; import localeZhHans from '@angular/common/locales/zh-Hans'; + registerLocaleData(localeZhHans); // AoT requires an exported function for factories @@ -60,6 +61,7 @@ { provide: HTTP_INTERCEPTORS, useClass: SimpleInterceptor, multi: true}, { provide: HTTP_INTERCEPTORS, useClass: DefaultInterceptor, multi: true}, { provide: ALAIN_I18N_TOKEN, useClass: I18NService, multi: false }, + DateService, StartupService, { provide: APP_INITIALIZER, -- Gitblit v1.8.0