I have my full code in below stackblitz link,
Here I am trying to update the UI when someone updates the storagelocation(in this case a Map
- which is in cache.service.ts
file).
- When I click
Get
method, it get the value from cache and update the UI. - When I click
Set
method, it update value in aMap
insideCacheService
.
Is there any way to update the UI automatically when I call Set
using RxJs ?
Note:You can see my new trails in cache.service2.ts
file.