I\'m trying to read a JSON file using htttp.get in Angular2.
When I use a file stored localy on my project, it works OK.
Bu
Not found collection
error suggest that you have used angular-in-memory-web-api
before. You need to remove everything related to that from your project, that would equal removing from imports
in your NgModule
the equal of the following:
InMemoryWebApiModule.forRoot(InMemoryDataService)
so that you are able to use external api and db.
Otherwise your code shouldn't change, but if you want, following this tutorial should help you.