Browse Source

fix: change imports order of app.module

pull/3651/head
mehmet-erim 7 years ago
parent
commit
7307ecd372
  1. 7
      npm/ng-packs/apps/dev-app/src/app/app.module.ts
  2. 12
      templates/app/angular/src/app/app.module.ts

7
npm/ng-packs/apps/dev-app/src/app/app.module.ts

@ -1,5 +1,4 @@
import { CoreModule } from '@abp/ng.core';
import { LAYOUTS } from '@abp/ng.theme.basic';
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
@ -19,6 +18,9 @@ const LOGGERS = [NgxsLoggerPluginModule.forRoot({ disabled: false })];
@NgModule({
imports: [
BrowserModule,
BrowserAnimationsModule,
AppRoutingModule,
CoreModule.forRoot({
environment,
}),
@ -28,9 +30,6 @@ const LOGGERS = [NgxsLoggerPluginModule.forRoot({ disabled: false })];
TenantManagementConfigModule,
SettingManagementConfigModule,
NgxsModule.forRoot(),
BrowserModule,
BrowserAnimationsModule,
AppRoutingModule,
SharedModule,
...(environment.production ? [] : LOGGERS),
],

12
templates/app/angular/src/app/app.module.ts

@ -18,8 +18,11 @@ const LOGGERS = [NgxsLoggerPluginModule.forRoot({ disabled: false })];
@NgModule({
imports: [
BrowserModule,
BrowserAnimationsModule,
AppRoutingModule,
CoreModule.forRoot({
environment
environment,
}),
ThemeSharedModule.forRoot(),
AccountConfigModule.forRoot({ redirectUrl: '/' }),
@ -27,13 +30,10 @@ const LOGGERS = [NgxsLoggerPluginModule.forRoot({ disabled: false })];
TenantManagementConfigModule,
SettingManagementConfigModule,
NgxsModule.forRoot(),
BrowserModule,
BrowserAnimationsModule,
AppRoutingModule,
SharedModule,
...(environment.production ? [] : LOGGERS)
...(environment.production ? [] : LOGGERS),
],
declarations: [AppComponent],
bootstrap: [AppComponent]
bootstrap: [AppComponent],
})
export class AppModule {}

Loading…
Cancel
Save