packages/core/src/lib/services/store/store.service.ts
Methods |
constructor()
|
| addAutoSaveHandler | |||||||||
| it will be removed in the next major version | |||||||||
addAutoSaveHandler(stateSlice: string, handler: Handler<T>)
|
|||||||||
|
Add an autoSave handler for a specific state slice
Parameters :
Returns :
void
|
| handleAutoSave |
handleAutoSave()
|
|
Returns :
void
|
| init | |||||||||
init(version?: string, storageType?: BrowserStorageType)
|
|||||||||
|
Parameters :
Returns :
void
|
| select | ||||||
select(key?: any)
|
||||||
|
Parameters :
Returns :
Observable<unknown>
|
| select | ||||||
select(keyOrMapFn?: unknown | string)
|
||||||
Type parameters :
|
||||||
|
Parameters :
Returns :
Observable<Partial | K>
|
| updateState | ||||||
updateState(state: DeepPartial
|
||||||
|
This method is used to update the state of the service with a new state.
Parameters :
Returns :
void
|
| updateState | |||||||||
|
it will be removed in next version. Use updateState(partialState: DeepPartial |
|||||||||
updateState(slice: DeepPartial
|
|||||||||
|
Parameters :
Returns :
void
|
| updateState | |||||||||
updateState(state: DeepPartial
|
|||||||||
Type parameters :
|
|||||||||
|
Parameters :
Returns :
void
|