I want to fetch data from JSON file which is on my local machine. But I am not able to get the data. It is showing some cross domain error for $http.
Here is my code
It's very simple like
$http.get('phones/phones.json').then(function(response) { $scope.phones = response.data; });
Refer:http://stackoverflow.com/questions/21589340/read-local-file-in-angularjs