It is easier to deal with JSONP request using $resource.
app = angular.module('myApp', ['ngResource'])
app.service('calendarFactory', function ($resource, $q) {
return {
query: function () {
return $resource(URL, {
get: {
method: 'jsonp'
}
});
}
}
});
function Ctrl($scope, calendarFactory) {
$scope.eventSource = calendarFactory.query().get();
}