UNPKG

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

12 lines (11 loc) 364 B
import { Observable, Subject } from 'rxjs'; interface StorageStrategy<T> { readonly keyChanges: Subject<string>; readonly isAvailable: boolean; readonly name: string; get(key: string): Observable<T>; set(key: string, value: T): Observable<T>; del(key: string): Observable<void>; clear(): Observable<void>; } export { StorageStrategy };