I am encountering an issue in Chrome that displays an error message: Error fetching feed: Undefined, 0. Do you have any suggestions on how to resolve this?
Below is the Angular code I am using:
// Implementing SimpleController, with data
demoApp.controller('SimpleController', function($scope, $http){
var url = "http://www.grabapper.com/api/v1/iosapps.json";
$http.jsonp(url).
success(function(data,status,headers,config){
$scope.feed = {
title: 'DailyJS',
items: data
};
}).
error (function(data,status,headers,config){
console.error('Error fetching feed:', data,status);
});
});
Here is the snippet from all.html:
<li ng-repeat="item in feed.items">
{{item.name}}
</li>