title: Array length in angularjs returns undefined
body: <p>JS:    </p>
  
  <pre><code>function UserController($scope, User, Group){
  
      $scope.users = User.query();
  
      $scope.isNewUser = function(){
  
              var len = $scope.users.lenght;
              console.log(len); //undefined
  
              for(var i = 0; i &lt; len; i++){
                  if($scope.users[i].created_at == null){
                      return false;
                  }
              }
  
              return true;
          }
      }
  }
  </code></pre>
  
  <p>In frontend I have a list of users that are rendered well. However when I retrieve the length I get undefined. Why? I need the length of users to loop through the array of objects.</p>