From f24776af8f3b8316f810e3f9bdd9a44472e1af55 Mon Sep 17 00:00:00 2001 From: Evan Winslow Date: Sat, 23 Nov 2013 15:18:54 -0800 Subject: [PATCH] docs(guide/di): Use square bracket notation for $inject annotation --- docs/content/guide/di.ngdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/guide/di.ngdoc b/docs/content/guide/di.ngdoc index f694ea12a358..b305dd6bcf14 100644 --- a/docs/content/guide/di.ngdoc +++ b/docs/content/guide/di.ngdoc @@ -146,7 +146,7 @@ of service names to inject. var MyController = function(renamed$scope, renamedGreeter) { ... } - MyController.$inject = ['$scope', 'greeter']; + MyController['$inject'] = ['$scope', 'greeter']; In this scenario the ordering of the values in the '$inject' array must match the ordering of the arguments to inject.