@nicomorell wrote:
I’m getting the following error: GET http://localhost:8100/json.php 404 (Not Found). However, whenever I go to http://localhost:8100/json.php I also get the error Error: Cannot match any routes. URL Segment: ‘json’.
this.http.get("http://localhost:8100/json.php").subscribe( data => { this.productList = JSON.parse(data["_body"]); }, err =>{ console.log(err); });
json.php is under the directory src/app/db/json.php
Any help is greatly appreciated!
Posts: 2
Participants: 2