angularjs - Reading json file in a folder structure using angular js -


i getting 404 error when trying read .json file folder structure below.

i using $http.get('/app/npi/npilist.json') read.

screnshot

need access json file app.js controller.

just remove '/' request,

it should be,

app.controller("listcontroller", ["$scope","$http",     function($scope,$http) {           $http.get('app/npi/npilist.json').then(function (response){                console.log(response.data)         });  }]); 

Comments

Popular posts from this blog

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -