title: how to get an array of numbers from angular.js resource?
body: <p>my RESTful API returns an array:</p>
  
  <pre><code>GET /test =&gt; [1367297123312,1.0,2.0,3.0,100]
  </code></pre>
  
  <p>I have a service:</p>
  
  <pre><code>(angular
   .module('app.services', ['ng', 'ngResource'])
   .factory('myData', [
       /******/ '$resource',
       function ($resource) {
           return $resource('test');
       }])
  );
  </code></pre>
  
  <p>In my controller I need to get the numbers. I tried:</p>
  
  <pre><code>(angular
   .module('app.controllers', ['ng', 'app.services'])
   .controller('tweetsapiContr', [
       /******/ '$scope', 'myData',
       function ($scope,   myData) {
           myData.get({}, function (data) {
               console.log(data);
           };
       }
   ])
  );
  </code></pre>
  
  <p>The above gives me <code>TypeError: Object #&lt;h&gt; has no method 'push'</code> error, and if I use <code>query</code> instead of <code>get</code> on the service, it returns an array of objects that have methods like <code>$get</code>, <code>$save</code> etc, but calling <code>$get</code> for example returns <code>undefined</code>.</p>
  
  <p>How to get the numbers? Responding with a hash from the server works, but I am trying to figure out how to make it work with arrays.</p>