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

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -