title: AngularJS not showing ng-repeat, just showing an empty list
body: <p>I have a problem trying to show a collection of objects in AngularJS.</p>
  
  <p>The ng-repeat is just showing the items but with empty data in console. I get the JSON data properly, catching the scope items with success of my api. 
  In my view it's just showing a gray bar at the bottom, the data is printing on bottom but not on ng-repeat.</p>
  
  <pre><code>&lt;div ng-controller="userController"&gt;
  &lt;div class="container"&gt;
      &lt;div class="row"&gt;
          &lt;div class="col-md-12"&gt;
              &lt;div class="panel panel-default"&gt;
                  &lt;div class="panel-heading"&gt;
                      &lt;h2&gt;Users&lt;/h2&gt;
                  &lt;/div&gt;
                  &lt;div class="panel-body"&gt;
  
                          &lt;div class="user"&gt;
                              &lt;div class="form-group"&gt;
                              &lt;input ng-model="user.name" type="text" placeholder="User Name" class="form-control"&gt;
                          &lt;/div&gt;
                          &lt;div class="form-group"&gt;
                              &lt;input ng-model="user.email" type="email" placeholder="User Email " class="form-control"&gt;
                          &lt;/div&gt;
                          &lt;div class="form-group"&gt;
                              &lt;input ng-model="user.password" type="password" placeholder="Set Your Password" class="form-control" &gt;
  
                          &lt;/div&gt;
                          &lt;div class="form-group"&gt;
                              &lt;select ng-model="user.admin" name="" id="" class="form-control"&gt;
                                  &lt;option value=""&gt;Admin&lt;/option&gt;
                              &lt;/select&gt;
                          &lt;/div&gt;
                          &lt;div class="form-group"&gt;
                              &lt;button ng-click="createUser(user)" class="btn btn-success"&gt;Create User&lt;/button&gt;
                          &lt;/div&gt;
                          &lt;/div&gt;
  
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div class="container"&gt;
      &lt;div class="row"&gt;
          &lt;div class="col-md-12"&gt;
              &lt;div class="panel panel-default"&gt;
                  &lt;div class="panel-heading"&gt;
                      &lt;h3&gt;All Users&lt;/h3&gt;
                  &lt;/div&gt;
                  &lt;div class="panel-body"&gt;
                      &lt;table class="table"&gt;
                          &lt;thead&gt;
                              &lt;tr&gt;
                                  &lt;th&gt;id&lt;/th&gt;
                                  &lt;th&gt;Name&lt;/th&gt;
                                  &lt;th&gt;Email&lt;/th&gt;
                                  &lt;th&gt;Options&lt;/th&gt;
                              &lt;/tr&gt;
                          &lt;/thead&gt;
                          &lt;tbody&gt;
                              &lt;tr ng-repeat="user in users"&gt;
                                  &lt;td&gt;{{ user.id }}&lt;/td&gt;
                                  &lt;td&gt;{{ user.name }}&lt;/td&gt;
                              &lt;/tr&gt;
                          &lt;/tbody&gt;
                      &lt;/table&gt;
                  &lt;/div&gt;  
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  {{users}}
  </code></pre>
  
  <p></p>
  
  <p>Please, see 
  <a href="https://i.stack.imgur.com/6cLyW.png" rel="nofollow noreferrer">this image</a> and <a href="https://i.stack.imgur.com/nngO8.png" rel="nofollow noreferrer">this one</a>.</p>
  
  <pre><code>(function() {
      'use strict';
  angular
      .module('anicasioApp')
      .controller('userController', userController);
      function userController($scope, $http){
          $scope.createUser = createUser;
          $scope.users = [];
  
      function init(){
          getAllUsers();
      }
      init();
  
      function getAllUsers() {
  
          $http.get('/api/userpost/')
          .then(function(users) {
              $scope.users = users;
              console.log($scope.users);
          })
          .catch(function(err) {
              err.sendStatus(400);
          })
      }
  
      function createUser(users) {
          console.log(users);
          $http.post('/api/userpost/', users)
              .then(getAllUsers);
              console.log(users);
      }
  
      }
  })();
  
      // Users Model
  function getAllUsers(req, res) {
      UserModel
          .find()
          .then(function(users) {
              res.json(users);
          }), 
          function(err){
              res.sendStatus(400);
          }
  }
  </code></pre>