fix angular.service $inject with $creation
authorDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 1 Nov 2010 10:00:57 +0000 (11:00 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 1 Nov 2010 10:00:57 +0000 (11:00 +0100)
based on help from mailing list:
https://groups.google.com/group/angular/browse_thread/thread/360af0c6158db733

templates/Cookbook/5-DeepLinking.html.ep

index 0c1602e..31d072a 100644 (file)
@@ -9,7 +9,7 @@ angular.service('myApplication', function($route){
    name:'anonymous',
    contacts:[{type:'email', url:'anonymous@example.com'}]
   };
- }, {inject:['$route']});
+ }, {$inject:['$route'], $creation:'eager'});
 
  function WelcomeCntl(){}
  WelcomeCntl.prototype = {