Closed brandonroberts closed 7 years ago
tx for the fix, so do we use it like before or there is new syntax?
@born2net no new syntax, you can use it the same way as before.
great tx
Published as v3.2.3
Hello!
It seems the same issue occurs with @ngrx/store-log-monitor as
StoreDevtoolsModule.instrumentStore({ monitor: useLogMonitor({ visible: true, position: 'right' }) }),
in the imports of the app module generates the same kind of error.
Could it be?
Thx
@IT-Ideas in order to use @ngrx/store-log-monitor
you need to provide a function that returns the config
export function instrumentOptions() {
return {
monitor: useLogMonitor({ visible: true, position: 'right' })
};
}
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
FormsModule,
HttpModule,
StoreDevtoolsModule.instrumentStore(instrumentOptions)
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule {}
@brandonroberts Thank you, it works!
I created Pull request in @ngrx/store-log-monitor with the readme.md updated accordingly.
Where is the definition of: useLogMonitor({ visible: true, position: 'right' })
Angular 2 Kitchen sink: http://ng2.javascriptninja.io and source@ https://github.com/born2net/Angular-kitchen-sink Regards,
Sean
tx!
Also exposed the configuration options to the instrumentOnlyWithExtension method Docs also updated to reflect usage of
maxAge
with extensionCloses #48, #51