import LocalStorageHelper from 'Template-WebpackFEND/src/helpers/local-storage.helper.js'
LocalStorageHelper
DataService Class for Storing Values in the LocalStorage in the browser
Static Method Summary
Static Public Methods | ||
public static |
get(objectPattern: {"key": *}): string | object Retrieves a value stored at the key in browser LocalStorage |
|
public static |
Saves the value at the key provided in the browser localStorage |
Static Public Methods
public static get(objectPattern: {"key": *}): string | object source
Retrieves a value stored at the key in browser LocalStorage
Params:
Name | Type | Attribute | Description |
objectPattern | {"key": *} |
|
Return:
string | object | the value stored at the key in the LocalStorage |