In my net tab I am seeing the responses coming back but I can't get access to the data for some reason.
Here is the direct link: https://github.com/users/gigablox/contributions_calendar_data
Using Angular 1.2 rc2. Tried a couple different ways...
$http
var url = "https://github.com/users/gigablox/contributions_calendar_data?callback=JSON_CALLBACK";
$http.jsonp(url).success(function(data){
console.log(data);
});
$resource
var handle = $resource('https://github.com/users/gigablox/contributions_calendar_data',{},{
get:{
method:'JSONP',
isArray: false, //response is wrapped as an array. tried true and false
params:{callback:'JSON_CALLBACK'}
}
});
handle.get().$promise.then(
function(data){
console.log(data);
}).
function(error){
console.log(error); //undefined but 200 OK on response?
});
$resourceerror callback it's returning the data property as undefined... But the response in my net tab is 200 OK. What is strange is theangular.callbacks._0()function isn't wrapping the response. The response type is an array as you will see in that direct link, so I've tried falggingisArray:true. No dice.