From: Dobrica Pavlinusic Date: Mon, 1 Nov 2010 10:00:57 +0000 (+0100) Subject: fix angular.service $inject with $creation X-Git-Url: http://git.rot13.org/?p=angular-mojolicious.git;a=commitdiff_plain;h=7f9c154b00634b657042f4e6d65046ac6d96c9c4;hp=58c78865ed755fa5262da96e05639044078ad5e3 fix angular.service $inject with $creation based on help from mailing list: https://groups.google.com/group/angular/browse_thread/thread/360af0c6158db733 --- diff --git a/templates/Cookbook/5-DeepLinking.html.ep b/templates/Cookbook/5-DeepLinking.html.ep index 0c1602e..31d072a 100644 --- a/templates/Cookbook/5-DeepLinking.html.ep +++ b/templates/Cookbook/5-DeepLinking.html.ep @@ -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 = {