aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/guide
diff options
context:
space:
mode:
authorphanboy42013-08-12 16:27:15 -0400
committerBrian Ford2013-08-28 13:41:12 -0700
commitc7b0d8494d2809f142e4276b541f23a11f93c6f1 (patch)
tree79477d62d5400560cb632da43c0d16a1e595fd61 /docs/content/guide
parente86de0db56e156d6c603584c440026effaf19b82 (diff)
downloadangular.js-c7b0d8494d2809f142e4276b541f23a11f93c6f1.tar.bz2
docs(guide): update description of $inject mechanism to be a little clearer
Diffstat (limited to 'docs/content/guide')
-rw-r--r--docs/content/guide/di.ngdoc2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/content/guide/di.ngdoc b/docs/content/guide/di.ngdoc
index 241bd656..0b8cb263 100644
--- a/docs/content/guide/di.ngdoc
+++ b/docs/content/guide/di.ngdoc
@@ -147,6 +147,8 @@ of service names to inject.
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.
+Using above code snippet as an example, '$scope' will be injected into 'renamed$scope' and 'greeter' into 'renamedGreeter'.
Care must be taken that the `$inject` annotation is kept in sync with the actual arguments in the
function declaration.