diff options
| author | phanboy4 | 2013-08-12 16:27:15 -0400 | 
|---|---|---|
| committer | Brian Ford | 2013-08-28 13:43:28 -0700 | 
| commit | 8c72549cc2477a6f898d9684a4c3db2ad2a7b149 (patch) | |
| tree | 8183c441de14fba3e63ca3a5f9e2534f75d16666 | |
| parent | bba5214930a8622d0c30fdb8951688bc74dc2d86 (diff) | |
| download | angular.js-8c72549cc2477a6f898d9684a4c3db2ad2a7b149.tar.bz2 | |
docs(guide): update description of $inject mechanism to be a little clearer
| -rw-r--r-- | docs/content/guide/di.ngdoc | 2 | 
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. | 
