Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ngrx/store-devtools
Developer Tools for @ngrx/store
https://github.com/ngrx/store-devtools
Last synced: 3 months ago
JSON representation
Developer Tools for @ngrx/store
- Host: GitHub
- URL: https://github.com/ngrx/store-devtools
- Owner: ngrx
- License: mit
- Archived: true
- Created: 2016-02-29T04:37:44.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-01-22T19:55:47.000Z (about 7 years ago)
- Last Synced: 2024-10-22T22:16:40.859Z (3 months ago)
- Language: TypeScript
- Homepage:
- Size: 111 KB
- Stars: 325
- Watchers: 30
- Forks: 38
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
- awesome-angular-components - @ngrx/store-devtools - Developer Tools for @ngrx/store. (Uncategorized / Uncategorized)
- awesome-angular-components - @ngrx/store-devtools - Developer Tools for @ngrx/store. (Uncategorized / Uncategorized)
README
---
# This repository is for version 3.x of of @ngrx/store-devtools.
# [Click here for the latest version (4.x)](https://github.com/ngrx/platform)
---# @ngrx/store-devtools
Devtools for [@ngrx/store](https://github.com/ngrx/store).[![Join the chat at https://gitter.im/ngrx/store](https://badges.gitter.im/ngrx/store.svg)](https://gitter.im/ngrx/store?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
## Installation
`npm install @ngrx/[email protected] --save`## Instrumentation
### Instrumentation with the Chrome / Firefox Extension (Preferred)1. Download the [Redux Devtools Extension](http://zalmoxisus.github.io/redux-devtools-extension/)
2. In your root Angular module import `StoreDevtoolsModule.instrumentOnlyWithExtension()`:
```ts
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 { }
```### Instrumentation with a Custom Monitor
To instrument @ngrx/store and use the devtools with a custom monitor you will need to setup the
instrumentation providers using `instrumentStore()`:```ts
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](https://github.com/ngrx/store-log-monitor) for an example monitor built for Angular 2
## Contributing
Please read [contributing guidelines here](https://github.com/ngrx/store-devtools/blob/master/CONTRIBUTING.md).