new Store(key, value)
Services/GoLocalStorageService/index.ts, line 5
| Name | Type | Description |
|---|---|---|
key |
string |
This is the key of the local storage |
value |
string |
This is the value of the local storage |
Methods
-
clear(){void}
Services/GoLocalStorageService/index.ts, line 61 -
Returns:
Type Description void Return nothing -
getItem(){string}
Services/GoLocalStorageService/index.ts, line 49 -
This function allow to access to the value of the item in the local storage
Returns:
Type Description string Return local store value -
removeItem(){void}
Services/GoLocalStorageService/index.ts, line 55 -
This function allow to remove the item in the local storage
Returns:
Type Description void Return nothing -
setItem(storageValue){void}
Services/GoLocalStorageService/index.ts, line 33 -
This function allow to store a new item in the local storage
Name Type Description storageValuemport('types').LocalStorageObj This is the value of the local storage object.
Returns:
Type Description void Return nothing -
updateItem(value){void}
Services/GoLocalStorageService/index.ts, line 41 -
This function allow to update the value of the local storage
Name Type Description valuestring This is the new value to set in the local storage
Returns:
Type Description void Return nothing
