title: Module not found in angularjs
body: <p>I want to wrap this <a href="https://gist.github.com/nblumoe/3052052">https://gist.github.com/nblumoe/3052052</a> in a module. I just changed the code from TokenHandler to UserHandler, because on every api request I want to send the user ID.</p>
  
  <p>However I get module UserHandler not found in firebug console. Here is my full code: <a href="http://dpaste.com/1076408/">http://dpaste.com/1076408/</a></p>
  
  <p>The relevent part:</p>
  
  <pre><code>angular.module('UserHandler').factory('UserHandler', function() {
      var userHandler = {};
      var user = 0;
  
      /...
  
      return userHandler;
  });
  
  angular.module('TicketService', ['ngResource', 'UserHandler'])
         .factory('Ticket', ['$resource', 'UserHandler',
                  function($resource, userHandler){
  
      var Ticket = $resource('/api/tickets/:id1/:action/:id2',
      {
          id1:'@id'
      }, 
  
      { 
          list: {
              method: 'GET'
          }
      }); 
  
      Ticket = userHandler.wrapActions( Ticket, ["open", "close"] );
  
      return Ticket;
  }]); 
  </code></pre>
  
  <p>Any idea why this happens? How to fix it?</p>