title: AngularJS using ng-repeat on a $scope array
body: <p>I have a controller that, through Parse, successfully retrieves and pushes an object onto an array as so:</p>
  
  <pre><code>var mySite = angular.module('mySite', []);
  
  mySite.controller('listConnectors', ['$scope',
      function ($scope) {
          //Parse.initialize here;
          $scope.array = [];
          var TestObject = Parse.Object.extend("TestObject");
          var query = new Parse.Query(TestObject);
          query.find({
              success: function (results) {
                  alert("Successfully retrieved " + results.length + " rows.");
                  // Do something with the returned Parse.Object values
                  for (var i = 0; i &lt; results.length; i++) {
                      var object = results[i];
                      alert(object.id + ' - ' + object.get('foo') + " " + object.get('num'));
  
                      /***** Pushing onto array here *******/
                      $scope.array.push(object);
  
                  }
  
                  console.log($scope.array[0].attributes.foo); //Grabbed what was needed
  
              },
              error: function (error) {
                  alert("Error: " + error.code + " " + error.message);
              }
          });
  }]);
  </code></pre>
  
  <p>I am then, unsuccessfully, trying to loop and list the "foo" value of every object in the array, as the console.log above shows. However, nothing is outputted. It's as though, possibly, the ng-repeat is not being executed or entered:</p>
  
  <pre><code>    &lt;li ng-repeat="eachElement in array"&gt;
      &lt;a &gt; {{eachElement.attributes.foo}}&lt;/a&gt;
      &lt;/li&gt;
  </code></pre>
  
  <p>Any help would be appreciated. Thanks!</p>