title: cant access JSON response in callback AngularJS
body: <p>In my net tab I am seeing the responses coming back but I can't get access to the data for some reason. </p>
  
  <p>Here is the direct link: <a href="https://github.com/users/gigablox/contributions_calendar_data" rel="nofollow">https://github.com/users/gigablox/contributions_calendar_data</a></p>
  
  <p><em>Using Angular 1.2 rc2. Tried a couple different ways...</em></p>
  
  <p><strong>$http</strong></p>
  
  <pre><code>var url = "https://github.com/users/gigablox/contributions_calendar_data?callback=JSON_CALLBACK";
  $http.jsonp(url).success(function(data){
      console.log(data);
  });  
  </code></pre>
  
  <p><strong>$resource</strong> </p>
  
  <pre><code>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?
  });
  </code></pre>