I'm a beginer using angular js. It's been great so far though I got into this issue trying to query flickr public photos using their json api. Here is the url.
If you clck there you'll see the json response just fine. Though when I try to print the results on the template using {{flickrResult}} I only get {} printed, and when I check the console for errors I get "jsonFlickrFeed is not defined" which is part of the json that flickr provides.
Here is the code of my 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 I work around this?