From cda061f723a78789c33988790d06561b14f55e89 Mon Sep 17 00:00:00 2001 From: Evan Winslow Date: Sat, 23 Nov 2013 15:18:54 -0800 Subject: docs(guide/di): use square bracket notation for $inject annotation Closes #5104 --- docs/content/guide/di.ngdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/content') diff --git a/docs/content/guide/di.ngdoc b/docs/content/guide/di.ngdoc index f694ea12..b305dd6b 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. -- cgit v1.2.3