Skip to main content

BrowserDataSource class

Storage in the browser, uses local storage

BrowserDataSource Type

Signature:

export declare class BrowserDataSource<Type> implements IDataSource<Type> 

Implements: IDataSource<Type>

Constructors

ConstructorModifiersDescription
(constructor)(_localStorageKey)Creates an instance of BrowserDataSource.

Methods

MethodModifiersDescription
delete(key, keyName)deletes item from the local storage
get(key, keyName)gets value from the local storage by given key
load()loads all from the local storage
save(key, value, keyName)saves value to the local storage