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

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

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

Loading…
Cancel
Save