We have two pages \"/read\" and \"/write\". Page \"/write\" each second updates localStorage with current time:
setInterval(function(){ var time = (new
my solution - angular app:
@HostListener('window:storage', ['$event']) testWindowStorage(event: StorageEvent) { if (event.key === 'xxx' && event.newValue !== event.oldValue && event.newValue !== event.oldValue)) { //do your business } }