Devtools for @ngrx/store.
Install @ngrx/store-devtools from npm:
npm install @ngrx/store-devtools --save
OR yarn add @ngrx/store-devtools
npm install github:ngrx/store-devtools-builds
OR yarn add github:ngrx/store-devtools-builds
-
Download the Redux Devtools Extension
-
In your
AppModule
add instrumentation to the module imports usingStoreDevtoolsModule.instrument
:
import { StoreDevtoolsModule } from '@ngrx/store-devtools';
@NgModule({
imports: [
StoreModule.forRoot(reducers),
// Note that you must instrument after importing StoreModule
StoreDevtoolsModule.instrument({
maxAge: 25 // Retains last 25 states
})
]
})
export class AppModule { }