title: AngularJS ng-repeat not working?
body: <p>I'm new to AngularJs and still trying to figure out how the basics work... I'm using the Soundcloud API to pull a list of followers for a given user. So far in my <code>$scope.init</code> function I am able to connect to Soundcloud, authenticate a user and return a json list of the user's followers. I then push each follower into an array called <code>$scope.results</code> and verify that the array is full by outputting it in the console. However when I try to output each follower as a list item in the array using <code>ng-repeat</code>  in my <code>main.html</code> view and I get nothing..... here's my code:</p>
  
  <p><strong>main.js</strong></p>
  
  <pre><code> .controller('MainCtrl', function ($scope, $http) {
      $scope.apiKey = "##########################";
      $scope.results = [];
      $scope.init = function(){
      SC.initialize({
          client_id: $scope.apiKey,
          redirect_uri: "http://localhost:9000/callback.html"
      });
      // initiate auth popup
      SC.connect(function() {
          SC.get('/me', function(me) { 
          alert('Hello, ' + me.username); 
      });
  
      SC.get('/me/followers', function(followers) {
          //console.log(followers);
          //angular.forEach(followers, function(value, index){
              angular.forEach(followers, function(follower, index){
                  $scope.results.push(follower);
              });
              console.log($scope.results);
      });
  });
  </code></pre>
  
  <p><strong>main.html</strong> // which is a view</p>
  
  <pre><code>`&lt;div ng-init="init()"&gt;`
  `&lt;li ng-repeat="follower in results"&gt;`
  `&lt;div class="row-fluid"&gt;`
      `&lt;div class="span3"&gt;`
         `&lt;div class="span6"&gt;`
          &lt;h3&gt;{{follower.username}}&lt;/h3&gt;
          &lt;p&gt;{{follower.description}}&lt;/p&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;/li&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>index.html</strong></p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;!--[if lt IE 7]&gt;      &lt;html class="no-js lt-ie9 lt-ie8 lt-ie7"&gt; &lt;![endif]--&gt;
  &lt;!--[if IE 7]&gt;         &lt;html class="no-js lt-ie9 lt-ie8"&gt; &lt;![endif]--&gt;
  &lt;!--[if IE 8]&gt;         &lt;html class="no-js lt-ie9"&gt; &lt;![endif]--&gt;
  &lt;!--[if gt IE 8]&gt;&lt;!--&gt; &lt;html class="no-js"&gt; &lt;!--&lt;![endif]--&gt;
  &lt;head&gt;
  &lt;meta charset="utf-8"&gt;
  &lt;meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"&gt;
  &lt;title&gt;&lt;/title&gt;
  &lt;meta name="description" content=""&gt;
  &lt;meta name="viewport" content="width=device-width"&gt;
  &lt;!-- Place favicon.ico and apple-touch-icon.png in the root directory --&gt;
  &lt;!-- build:css styles/main.css --&gt;
  &lt;link rel="stylesheet" href="styles/bootstrap.css"&gt;
  &lt;link rel="stylesheet" href="styles/main.css"&gt;
  &lt;!-- endbuild --&gt;
    &lt;/head&gt;
    &lt;body ng-app="soundSelectApp" ng-controller="MainCtrl"&gt;
      &lt;!--[if lt IE 7]&gt;
        &lt;p class="chromeframe"&gt;You are using an outdated browser. &lt;a href="http://browsehappy.com/"&gt;Upgrade your browser today&lt;/a&gt; or &lt;a href="http://www.google.com/chromeframe/?redirect=true"&gt;install Google Chrome Frame&lt;/a&gt; to better experience this site.&lt;/p&gt;
  &lt;![endif]--&gt;
  
  &lt;!--[if lt IE 9]&gt;
    &lt;script src="components/es5-shim/es5-shim.js"&gt;&lt;/script&gt;
    &lt;script src="components/json3/lib/json3.min.js"&gt;&lt;/script&gt;
  &lt;![endif]--&gt;
  
  &lt;!-- Add your site or application content here --&gt;
  &lt;div class="container" ng-view&gt;&lt;/div&gt;
  
  &lt;script src="components/angular/angular.js"&gt;&lt;/script&gt;
  &lt;script src="components/angular-resource/angular-resource.js"&gt;&lt;/script&gt;
  &lt;script src="components/angular-cookies/angular-cookies.js"&gt;&lt;/script&gt;
  &lt;script src="components/angular-sanitize/angular-sanitize.js"&gt;&lt;/script&gt;
  
  &lt;!-- build:js scripts/scripts.js --&gt;
  &lt;script src="scripts/app.js"&gt;&lt;/script&gt;
  &lt;script src="scripts/controllers/main.js"&gt;&lt;/script&gt;
  &lt;script src="http://connect.soundcloud.com/sdk.js"&gt;&lt;/script&gt;
  &lt;!-- endbuild --&gt;
  
  &lt;!-- Google Analytics: change UA-XXXXX-X to be your site's ID. --&gt;
  &lt;script&gt;
    var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']];
    (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
    g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
    s.parentNode.insertBefore(g,s)}(document,'script'));
  &lt;/script&gt;
  </code></pre>
  
  <p>
  </p>