Browse Source

feat: import InspectorModule when in dev mode

pull/6044/head
Arman Ozak 6 years ago
parent
commit
0b90e75f94
  1. 8
      npm/ng-packs/apps/dev-app/src/app/app.module.ts

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

@ -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],

Loading…
Cancel
Save