We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bba5214 commit 8c72549Copy full SHA for 8c72549
1 file changed
docs/content/guide/di.ngdoc
@@ -147,6 +147,8 @@ of service names to inject.
147
MyController.$inject = ['$scope', 'greeter'];
148
</pre>
149
150
+In this scenario the ordering of the values in the '$inject' array must match the ordering of the arguments to inject.
151
+Using above code snippet as an example, '$scope' will be injected into 'renamed$scope' and 'greeter' into 'renamedGreeter'.
152
Care must be taken that the `$inject` annotation is kept in sync with the actual arguments in the
153
function declaration.
154
0 commit comments