How do I read a JSON file that’s located in the Assets folder?
In Angular/Ionic 5 I did the following:
this.http.get(’/assets/data/somefile.json’)
I’m using Axios in order to retrieve external API, and that works fine, tried to use this here as well, but couldn’t get that to work.
3 posts - 2 participants