The Redux DevTools extension is a very popular tool to visualize and perform actions on the Redux state tree of an application. Thankfully, it can also be used with Angular 2+ projects that use ngrx/store for state management, thanks to ngrx/store-devtools.

First install the Redux DevTools extension itself. If you're using Chrome, the easiest is through the Chrome web store. And addons.mozilla.org for the Firefox version. With the extension installed, you'll see a new tab in your browser's DevTools available when you're working in a Redux-powered app.

Then install <^>@ngrx/store-devtools<^> using Yarn or npm:

				
					
$ yarn add @ngrx/store-devtools



# or:

$ npm install @ngrx/store-devtools --save

				
			

Finally, in your app module, import <^>StoreDevtoolsModule<^> and add it to your NgModule's imports:

				
					
[label app.module.ts]

// ...



import { StoreModule } from '@ngrx/store';

import { todoReducer } from './reducers/todo.reducer';

import { StoreDevtoolsModule } from '@ngrx/store-devtools';



				
			

The <^>maxAge<^> config is optional and helps limit the amount of actions kept in the DevTools.

✨ And that's it! You're ready to start using the Redux DevTools in your ngrx/store projects.

You can skip actions, visualize actions and state or import/export the current state tree:

You can even dispatch actions directly from the extension: