title: Angularjs $resource not working with an array returned from a REST API
body: <p>I am trying to learn angularjs, and have hit a block in trying to databind to an array returned from a Rest API. I have a simple azure api returning an array of person objects. Service url is <a href="http://testv1.cloudapp.net/test.svc/persons">http://testv1.cloudapp.net/test.svc/persons</a>. </p>
  
  <p>My controller code looks like: </p>
  
  <pre><code>angular.module("ToDoApp", ["ngResource"]);
  function TodoCtrl($scope, $resource) {
  $scope.svc = $resource('http://testv1.cloudapp.net/test.svc/persons', {
      callback: 'JSON_CALLBACK'
  }, {
      get: {
          method: 'JSONP',
          isArray: true
      }
  });
  $scope.items = $scope.svc.get();
  $scope.msg = "Hello World";
  }
  </code></pre>
  
  <p>My html looks like:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;&lt;/head&gt;
  &lt;body&gt;
  &lt;div ng-app="ToDoApp"&gt;
      &lt;div ng-controller="TodoCtrl"&gt;
           &lt;h1&gt;{{msg}}&lt;/h1&gt;
  
          &lt;table class="table table-striped table-condensed table-hover"&gt;
              &lt;thead&gt;
                  &lt;th&gt;Email&lt;/th&gt;
                  &lt;th&gt;First Name&lt;/th&gt;
                  &lt;th&gt;Last Name&lt;/th&gt;
              &lt;/thead&gt;
              &lt;tbody&gt;
                  &lt;tr ng-repeat="item in items"&gt;
                      &lt;td&gt;{{item.Email}}&lt;/td&gt;
                      &lt;td&gt;{{item.FirstName}}&lt;/td&gt;
                      &lt;td&gt;{{item.LastName}}&lt;/td&gt;
                  &lt;/tr&gt;
              &lt;/tbody&gt;
          &lt;/table&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Question: The table in above html is not displaying any data. I can see the call to the api in Firebug, and can also see the JSON response from the api. What am I doing incorrectly that is causing the databinding to the REST api not work?</p>
  
  <p>PS:JSFiddle demonstrating this issue is at: <a href="http://jsfiddle.net/jbliss1234/FBLFK/4/">http://jsfiddle.net/jbliss1234/FBLFK/4/</a></p>