|
|
|
@ -8,6 +8,7 @@ import { ThemeSharedModule } from '@abp/ng.theme.shared'; |
|
|
|
import { NgModule } from '@angular/core'; |
|
|
|
import { BrowserModule } from '@angular/platform-browser'; |
|
|
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; |
|
|
|
import { InspectorModule } from '@ngneat/inspector'; |
|
|
|
import { NgxsLoggerPluginModule } from '@ngxs/logger-plugin'; |
|
|
|
import { NgxsModule } from '@ngxs/store'; |
|
|
|
import { environment } from '../environments/environment'; |
|
|
|
@ -15,7 +16,10 @@ import { AppRoutingModule } from './app-routing.module'; |
|
|
|
import { AppComponent } from './app.component'; |
|
|
|
import { APP_ROUTE_PROVIDER } from './route.provider'; |
|
|
|
|
|
|
|
const LOGGERS = [NgxsLoggerPluginModule.forRoot({ disabled: true })]; |
|
|
|
const INSPECTION_TOOLS = [ |
|
|
|
NgxsLoggerPluginModule.forRoot({ disabled: true }), |
|
|
|
InspectorModule.forRoot(), |
|
|
|
]; |
|
|
|
|
|
|
|
@NgModule({ |
|
|
|
imports: [ |
|
|
|
@ -34,7 +38,7 @@ const LOGGERS = [NgxsLoggerPluginModule.forRoot({ disabled: true })]; |
|
|
|
SettingManagementConfigModule.forRoot(), |
|
|
|
NgxsModule.forRoot(), |
|
|
|
ThemeBasicModule.forRoot(), |
|
|
|
...(environment.production ? [] : LOGGERS), |
|
|
|
...(environment.production ? [] : INSPECTION_TOOLS), |
|
|
|
], |
|
|
|
providers: [APP_ROUTE_PROVIDER], |
|
|
|
declarations: [AppComponent], |
|
|
|
|