I have a scenario where I am working with two pages: my-view1
and my-view2
.
On my-view1, there are two buttons that manipulate data stored in LocalStorage.
On my-view2, there are two simple div elements that display the total value and the total value in the last 6 months.
The issue is that on my-view2, the displayed values do not update unless the page is manually refreshed. I want the values on my-view2 to automatically update every time the page is loaded or viewed, even if it's cached.
I have provided a plnkr link showcasing my-view2 so you can better understand what I am trying to achieve.
https://plnkr.co/edit/ul4T2mduxjElCN4rUUKd?p=info
Any suggestions on how I can accomplish this?