I have been facing challenges while trying to deploy my web application with the frontend being Angular. The issue I am encountering is that I cannot access my JSON file located in the assets folder.
Below is the function I am using to retrieve data from the JSON file:
getLanguage()
{
let language=localStorage.getItem('language')
if (!language)
language = 'english'
return this.http.get('www/dist/assets/languages/'+language+'.json')
}
}
The path of the file on my server is:
https://i.sstatic.net/MUOGa.pngI have been attempting to access the JSON file on my server but have been unsuccessful. I am not sure if it is an issue with the URL or something else entirely. Can anyone provide guidance on resolving this issue?