Can someone point me in the right direction? I have a static json file stored in my assets directory that I import throughout a few components. However, I want to periodically fetch a json from a server and check for updates and then do some post-processing on the static version in my assets directory after the fetch (essentially make a copy with some modifications). What’s the best way to do this with Angular 7? I only want to fetch updates and do the post-processing once a day or maybe even once a week.
Currently, I import the static json like this:
import mlbPlayers from '../../assets/data/players-mlb.json';
Something like this but in the "Angular" way