title: getting Angular.js to display html list of json data
body: <p>I am trying to have an HTML list of the id fields of game objects in a json file. However It does not show up in my UI. I don't know why it wont even render. </p>
  
  <p>---core.js---</p>
  
  <pre><code>var gameapp = angular.module('gameapp',[]);
  
  function mainController($scope,$http) {
    $scope.formData = {};
  
    $http.get('/api/games')
      .success(function(data){
        $scope.games = data;
        console.log(data);
  
      })
      .error(function(data) {
        console.log('Error' + data);
      });
  }
  </code></pre>
  
  <p>---- index.html----</p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html ng-app="gameapp"&gt;
  
    &lt;script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"&gt;&lt;/script&gt;&lt;!-- load jquery --&gt;
    &lt;script src="//ajax.googleapis.com/ajax/libs/angularjs/1.0.8/angular.min.js"&gt;&lt;/script&gt;&lt;!-- load angular --&gt;
    &lt;script src="core.js"&gt;&lt;/script&gt;
  
    &lt;title&gt;Games API&lt;/title&gt;
  
    &lt;body ng-controller="mainController"&gt;Games List:
      &lt;ul&gt;
        &lt;li ng-repeat="game in games"&gt;
          {{ game._id }}
        &lt;/li&gt;
      &lt;/ul&gt;
    &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>---- UI------</p>
  
  <pre><code>Games List:
  {{ game._id }}
  </code></pre>
  
  <p>---- Here is my JSON when I type www.example.com/api/games</p>
  
  <pre><code> [{"_id":"54e4add76b91eab37a3611c8","objectname":"objectname","objectid":"objectid","average":"average","avgweight":"avgweight","rank":"rank","minplayers":"minplayers","maxplayers":"maxplayers","playingtime":"playingtime","biggbestplayers":"bggbestplayers"},{"_id":"54e4add76b91eab37a3611c9","objectname":"6 qui prend !","objectid":432,"average":6.75695,"avgweight":1.2418,"rank":445,"minplayers":2,"maxplayers":10,"playingtime":45,"biggbestplayers":"5-- 6"},{"_id":"54e4add76b91eab37a3611ca","objectname":"Adel Verpflichtet","objectid":120,"average":6.40472,"avgweight":1.8605,"rank":861,"minplayers":2,"maxplayers":6,"playingtime":45,"biggbestplayers":"5-- 6"},{"_id":"54e4add76b91eab37a3611cb","objectname":"Age of Steam","objectid":4098,"average":7.53212,"avgweight":3.9285,"rank":53,"minplayers":1,"maxplayers":6,"playingtime":120,"biggbestplayers":4},{"_id":"54e4add76b91eab37a3611cc","objectname":"Agricola","objectid":31260,"average":8.06284,"avgweight":3.6088,"rank":5,"minplayers":1,"maxplayers":5,"playingtime":180,"biggbestplayers":"3-- 4"},{"_id":"54e4add76b91eab37a3611cd","objectname":"Aladdin's Dragons","objectid":492,"average":6.66519,"avgweight":2.4728,"rank":537,"minplayers":3,"maxplayers":5,"playingtime":90,"biggbestplayers":5},{"_id":"54e4add76b91eab37a3611ce","objectname":"Alexandros","objectid":8273,"average":5.86456,"avgweight":2.3423,"rank":2271,"minplayers":2,"maxplayers":4,"playingtime":45,"biggbestplayers":"NA"},{"_id":"54e4add76b91eab37a3611cf","objectname":"Alhambra","objectid":6249,"average":6.96861,"avgweight":2.1234,"rank":298,"minplayers":2,"maxplayers":6,"playingtime":60,"biggbestplayers":3},{"_id":"54e4add76b91eab37a3611d0","objectname":"Alien Frontiers","objectid":48726,"average":7.3786,"avgweight":2.541,"rank":93,"minplayers":2,"maxplayers":4,"playingtime":90,"biggbestplayers":"3-- 4"},{"_id":"54e4add76b91eab37a3611d1","objectname":"Amun-Re","objectid":5404,"average":7.21837,"avgweight":3.068,"rank":165,"minplayers":3,"maxplayers":5,"playingtime":90,"biggbestplayers":5}]
  </code></pre>