observe Method
Returns an observable that emits value changes stored under the given key in local storage
@param key: string
The specific key under which the value is stored in local storage
@returns Observable<T>
An observable that will emit value changes for a specific key
API
observe(key: string): Observable<T>;
Example
import {tap} from 'rxjs';
import {localStorage} from '@bitfiber/rx';
const ls = localStorage();
ls.observe('key').pipe(tap(v => console.log(v))).subscribe();