Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 926 Bytes

README.md

File metadata and controls

36 lines (24 loc) · 926 Bytes

@ngrx/store-devtools

Devtools for @ngrx/store.

Installation

Install @ngrx/store-devtools from npm:

npm install @ngrx/store-devtools --save OR yarn add @ngrx/store-devtools

Nightly builds

npm install github:ngrx/store-devtools-builds OR yarn add github:ngrx/store-devtools-builds

Instrumentation

Instrumentation with the Chrome / Firefox Extension

  1. Download the Redux Devtools Extension

  2. In your AppModule add instrumentation to the module imports using StoreDevtoolsModule.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 { }