aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/guide
diff options
context:
space:
mode:
authorEvan Winslow2013-11-23 15:18:54 -0800
committerPete Bacon Darwin2013-11-27 22:48:02 +0000
commitcda061f723a78789c33988790d06561b14f55e89 (patch)
tree2e1b3ae623cd8f464cddfb710211c5752e46094a /docs/content/guide
parent1497c6c1fb9783855802d2a81b6e3ec9b9b6bb66 (diff)
downloadangular.js-cda061f723a78789c33988790d06561b14f55e89.tar.bz2
docs(guide/di): use square bracket notation for $inject annotation
Closes #5104
Diffstat (limited to 'docs/content/guide')
-rw-r--r--docs/content/guide/di.ngdoc2
1 files changed, 1 insertions, 1 deletions
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'];
</pre>
In this scenario the ordering of the values in the '$inject' array must match the ordering of the arguments to inject.