I am new to angular please help to identify the issue here
https://stackblitz.com/edit/angular-ntqzd6
Http failure during parsing for https://angular-ntqzd6.stackblitz.io/assets/data/employee.json"
I am new to angular please help to identify the issue here
https://stackblitz.com/edit/angular-ntqzd6
Http failure during parsing for https://angular-ntqzd6.stackblitz.io/assets/data/employee.json"
It looks like you've placed your assets
directory inside your app
directory. If you want to keep this structure, you'll have to update the angular.json
to:
...
"assets": [
"src/favicon.ico",
"src/app/assets"
],
...
Additionally, you should notice that there is an open issue in the StackBlitz Github repository regarding asset serving. You should definitely switch to a local IDE for development like VSCode with Angular CLI, if you aren't already using one.