From 7f9c154b00634b657042f4e6d65046ac6d96c9c4 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Mon, 1 Nov 2010 11:00:57 +0100 Subject: [PATCH] fix angular.service $inject with $creation based on help from mailing list: https://groups.google.com/group/angular/browse_thread/thread/360af0c6158db733 --- templates/Cookbook/5-DeepLinking.html.ep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = { -- 2.20.1