Storage
Stores the features state in browser's local storage or cookie
Constructor Summary
| Public Constructor | ||
| public |
constructor(state: State) Creates an instance of Storage |
|
Method Summary
| Public Methods | ||
| public |
destroy() Release Storage event subscriptions and clear fields |
|
| public |
Returns the storage key |
|
| public |
init() Initializes the Storage object |
|
| public |
remove() Removes persisted state from storage |
|
| public |
Turns stored string into a State JSON object |
|
| public |
Persists the features state on state changes |
|
| public |
sync() Applies persisted state to features |
|
