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

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -