Subscribable localStorage or sessionStorage.
import { StorageProxy } from 'storage-hook';
let storage = StorageProxy.create(sessionStorage);
storage.onChanged.subscribe(x => {
console.log('result: ' + x['a']);
});
storage.setItem('a', '123');
import { StorageProxy } from 'storage-hook';
let storage = StorageProxy.create(sessionStorage);
storage.getPropertyChangeHook('a').subscribe(x => {
console.log('result: ' + x);
});
storage.setItem('a', '456');