Hello;
I have a local JSON file that conient a list of products, I want to access 
to it using a HTTP service through a get function, my class service and the 
json file are in the same folder, when i put: 
getProducts(): Observable<Iproduct[]> {
return this._http.get<Iproduct[]>('./products.json');
}
I have a error like this:
 GET http://localhost:4200/products.json 404 (Not Found)
Do you have any idea about where angular put this file while it build my 
application.
thank you.

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to