Skip to content
This repository has been archived by the owner on Jan 3, 2025. It is now read-only.

Fixed api call; added missing dev-tool install instructions #32

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Port of [redux-devtools-log-monitor](https://github.com/gaearon/redux-devtools-l
*Install @ngrx/store-log-monitor from npm*
```bash
npm install @ngrx/store-log-monitor --save
npm install @ngrx/store-log-devtools --save
```

*Configure the monitor when instrumenting store*
Expand All @@ -26,7 +27,10 @@ export function instrumentOptions() {

@NgModule({
imports: [
StoreDevtoolsModule.instrumentStore(instrumentOptions),
StoreDevtoolsModule.instrument({
maxAge: 25 // Retains last 25 states
}),
StoreDevtoolsModule.instrument(instrumentOptions),
StoreLogMonitorModule
]
})
Expand All @@ -44,3 +48,8 @@ export class AppModule { }
})
export class AppComponent { }
```

### Run

Run your app and the log monitor bar should display inside your app. You can hide/show the monitor by pressing **ctrl-h** keys and change its position by pressing **ctrl-m** keys.

Loading