title: Angularjs $http.get().then and binding to a list
body: <p>I have a list that looks like this: </p>
  
  <pre><code>&lt;li ng-repeat="document in DisplayDocuments()" ng-class="IsFiltered(document.Filtered)"&gt;
      &lt;span&gt;&lt;input type="checkbox" name="docChecked" id="doc_{{document.Id}}" ng-model="document.Filtered" /&gt;&lt;/span&gt;
      &lt;span&gt;{{document.Name}}&lt;/span&gt;
  &lt;/li&gt;
  </code></pre>
  
  <p>I bind this list in my controller, to this: </p>
  
  <pre><code>$scope.Documents = $http.get('/Documents/DocumentsList/' + caseId).then(function(result) {
      return result.data;
  });
  </code></pre>
  
  <p>When this runs, I dont get any results. when I remove the <code>then</code> method, I get three empty lines, making the count OK, but no information is displayed. </p>
  
  <p>I know "everthing" else works, since I previously populated the list with jQuery, what am I doing wrong?</p>
  
  <p>Here's the response from the server:</p>
  
  <pre><code>{Id:3f597acf-a026-45c5-8508-bc2383bc8c12, Name:ZZ_BL0164_Skisse BL0164_945111.pdf, Order:1,…}
  {Id:46f51f1f-02eb-449a-9824-8633e8ae7f31, Name:ZB_BL0201_Firmaattest BL0201_945111.pdf, Order:1,…}
  {Id:fddd1979-c917-4b32-9b83-b315f66984ed, Name:ZA_BL0228_Legitimasjonsskjema BL0228_945111.pdf,…}
  </code></pre>