My question is quite general. I want to watch for localStorage changes in angular but every key in localStorage need to be watched separately.
For example, I have some products list in localStorage at some key _products_
let's say, which stores an array of products. Now, whenever I add a new product and appending it to the _products_
key in localStorage, I want other components to know _products_
is modified.
A solution is available here but that watches for all the keys in localStorage.
Appreciate your help. Thanks.