I was playing around with Angular and rather than calling a fully blown API endpoint I was using a sample JSON file within an API folder in my solution.
Despite pointing the http.get at the correct location and lots of shouting “Look the sodding file is there!!” the client side rendering was having none of it. Turns out as I’m using the Angular Cli I needed to specify my file as an Asset in the angular-cli.json file:
"assets" : [
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.