angularjs - jsonFlickrFeed not defined when query flickr api -
i'm beginer using angular js. it's been great far though got issue trying query flickr public photos using json api. here url.
if clck there you'll see json response fine. though when try print results on template using {{flickrresult}} {} printed, , when check console errors "jsonflickrfeed not defined" part of json flickr provides.
here code of controller:
angular.module('flickr', ['ngresource']); function flickrctrl($scope, $resource){ $scope.flickr = $resource('http://api.flickr.com/services/feeds/:action', {action:'photos_public.gne', format: 'json', callback: 'json_callback'}, {get: {method: 'jsonp'}}); $scope.flickrresult = $scope.flickr.get(); }; any ideas how can work around this?
Comments
Post a Comment