title: AngularJS: Why am getting an "Error: [$injector:unpr]" error for a factory but not service?
body: <p>I have two blocks of code, one is a service and the other is a factory. Adhering the minification best practices, I have injected the dependencies as such:</p>
  
  <p>Service</p>
  
  <pre><code>    lostPasswordServiceModule.service('servicemodule_lostpassword_service',
                  ['$timeout',
                   '$scope', 
                   function ($timeout, $scope) {                      
              ...
       }]);
  </code></pre>
  
  <p>Factory (PROBLEM)</p>
  
  <pre><code>    lostPasswordServiceModule.factory('servicemodule_lostpassword_service',
                  ['$timeout',
                   '$scope', 
                   function ($timeout, $scope) {                      
              ...
      }]);
  </code></pre>
  
  <p>However, for some reason beyond me I am getting an  "Error: [$injector:unpr]" error on the factory definition.</p>
  
  <p>Now if I simply remove the minification parms from the factory injections and change it to:</p>
  
  <pre><code>    lostPasswordServiceModule.factory('servicemodule_lostpassword_service',
                 [function ($timeout, $scope) {                           
             ...
      }]);
  </code></pre>
  
  <p>The error goes away and the world is happy.</p>
  
  <p>Can anyone see what I'm doing wrong and why I'm unable to inject my factory dependencies with the extra minification args?</p>
  
  <p>Thank you in advance!</p>