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.
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
Post a Comment