I am trying to display activity feed using the ionic material cards with ng-repeat. But i am getting blank cards. I inspected the elent and the data seems to be there, but its just not displaying. The data is being gotten from reddit.
My Service
octo.factory(‘Activity’,[’$http’,function($http){
return {
getActivity:function(){
var uri = ‘http://www.reddit.com/r/soccer/new/.json’;
return $http.get(uri);
}
}
}]);
My activity controller
$scope.feeds = [];
Activity.getActivity()
.success(function(response,status){
angular.forEach(response.data.children,function(feed){
$scope.feeds.push(feed.data);
})
})
.error(function(error,status){
console.log(error);
});
My html
{{feed.author}} uploaded {{feed.title}}
I will be very grateful for your help.