title: Push to an array from get:method
body: <p>EDIT: Solved the question thanks to you. list() instead of list. 
  Such a stupid question.</p>
  
  <p>Why pushing to array in a factory like this doesn't work?
  It works only if I make a push function inside the factory.</p>
  
  <pre><code>var app = angular.module('app', []);
  
  app.factory('registeredUsersService', function() {
      var registeredUsers = [];
      return {
          list: function () {
              return registeredUsers;
          }
      }
  });
  
  
  app.controller('registerController', function ($scope, registeredUsersService) {
      registeredUsersService.list.push({username: 'a', password: 'b'});
  });
  </code></pre>