ngx-webstorage
Version:
### Local and session storage - Angular service This library provides an easy to use service to manage the web storages (local and session) from your Angular application. It provides also two decorators to synchronize the component attributes and the web
9 lines (8 loc) • 477 B
TypeScript
import { FactoryProvider, InjectionToken } from '@angular/core';
import { WebStorage } from './interfaces/webStorage';
export declare const LOCAL_STORAGE: InjectionToken<WebStorage>;
export declare function getLocalStorage(): Storage;
export declare const LocalStorageProvider: FactoryProvider;
export declare const SESSION_STORAGE: InjectionToken<WebStorage>;
export declare function getSessionStorage(): Storage;
export declare const SessionStorageProvider: FactoryProvider;