Devtools for @ngrx/store.
npm install @ngrx/[email protected] --save
-
Download the Redux Devtools Extension
-
In your root Angular module import
StoreDevtoolsModule.instrumentOnlyWithExtension()
:
import { StoreDevtoolsModule } from '@ngrx/store-devtools';
@NgModule({
imports: [
StoreModule.provideStore(rootReducer),
// Note that you must instrument after importing StoreModule
StoreDevtoolsModule.instrumentOnlyWithExtension({
maxAge: 5
})
]
})
export class AppModule { }
To instrument @ngrx/store and use the devtools with a custom monitor you will need to setup the
instrumentation providers using instrumentStore()
:
import {StoreDevtoolsModule} from '@ngrx/store-devtools';
@NgModule({
imports: [
StoreModule.provideStore(rootReducer),
// Note that you must instrument after importing StoreModule
StoreDevtoolsModule.instrumentStore({
maxAge: 5,
monitor: monitorReducer
})
]
})
export class AppModule { }
See @ngrx/store-log-monitor for an example monitor built for Angular 2
Please read contributing guidelines here.