Configuration
Last updated
Was this helpful?
Last updated
Was this helpful?
In your app's main module, register store module with initial state object as a first variable and value for identifying is it prod environment as second parameter.
where initial state looks like
In addition you can pass other variables to StoreModule.provideStore
function
collectHistory - should history be collected at all - default is true
storeHistoryItems - how many items should be stored. Default is 100
restoreStateFromServer - marks if state should be restored from server. For more information look at documentation Default is false