Skip to content

Instantly share code, notes, and snippets.

Last active December 2, 2015 09:43
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Fetching feed in Angular
var feedUrl = '';
$http.jsonp('', {params: {v: '1.0', q: feedUrl, num:-1, callback:'JSON_CALLBACK'}}).success(function(data) {
$scope.entries = data.responseData.feed.entries;
angular.forEach($scope.entries, function (entry) {
entry.publishedDate = new Date(entry.publishedDate);
$http.jsonp('', {cache: true, params: {callback:'JSON_CALLBACK'}}).success(function(data) {
$scope.entries = data;
angular.forEach($scope.entries, function (entry) {
entry.publishedDate = new Date(;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment