Vimal
Vimal

Reputation: 2857

JSON service is not getting in controllers

I don't know what wrong with my code.

<body ng-app="MyApp">

Please check this url
http://jsfiddle.net/9budtfmo/1/
The JSON response is not getting in my controllers. If I have added the json data in the variable 'users' without using $http.get() method, it will work perfectly. But I didn't get response when I am using http. Please help me. Thanks.

Upvotes: 0

Views: 36

Answers (1)

sylwester
sylwester

Reputation: 16498

if you open console you can see


Error 404

We're truly sorry, but there is no such page.


which means your json file not exist

Upvotes: 2

Related Questions