title: Using ng-init and ng-repeat in the same div
body: <p>I'm not sure it is possible to use ng-init and ng-repeat in the same div. I need it to select from the database all comments that have an id of 6.</p>
  
  <p>I'm calling the code here and displaying an array:</p>
  
  <pre><code>&lt; div ng-init="getComments('6')" ng-repeat="comment in comments"&gt;{{ comment.message }}&lt; /div&gt;
  </code></pre>
  
  <p>And this is what the function looks like in the angular file:</p>
  
  <pre><code>    $scope.getComments = function(statusid) {
  Comment.get(statusid)
      .success(function(data) { 
          $scope.comments = data;
          $scope.loading = false;
      });
  };
  </code></pre>
  
  <p>And calling the API here:</p>
  
  <pre><code>    return {
      // get all the comments
      get : function(statusid) {
          return $http.get('/api/comments' + statusid);
      },
  </code></pre>
  
  <p>Am I missing something simple? I did not include the PHP files as that seems to all be working fine.  </p>