aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/guide/dev_guide.di.understanding_di.ngdoc
diff options
context:
space:
mode:
authorIgor Minar2011-07-29 12:45:10 -0700
committerIgor Minar2011-07-29 12:46:54 -0700
commita79231dea6cd13849c1a72d447f367e8c5053537 (patch)
treec8f96ba0128df52c5c6f54e034eced9839615d57 /docs/content/guide/dev_guide.di.understanding_di.ngdoc
parent3e54a1b18ab698d55e1642a120f95ea3adf6af1b (diff)
downloadangular.js-a79231dea6cd13849c1a72d447f367e8c5053537.tar.bz2
doc(guide): various fixes and improvements
Diffstat (limited to 'docs/content/guide/dev_guide.di.understanding_di.ngdoc')
-rw-r--r--docs/content/guide/dev_guide.di.understanding_di.ngdoc10
1 files changed, 2 insertions, 8 deletions
diff --git a/docs/content/guide/dev_guide.di.understanding_di.ngdoc b/docs/content/guide/dev_guide.di.understanding_di.ngdoc
index ff2551f1..93aa407c 100644
--- a/docs/content/guide/dev_guide.di.understanding_di.ngdoc
+++ b/docs/content/guide/dev_guide.di.understanding_di.ngdoc
@@ -87,14 +87,8 @@ function fnB($window, serviceA_, name){};
</pre>
If angular does not find a `$inject` annotation on the function, then it calls the `.toString()`
-method and tries to infer what should be injected using the following rules:
-
-* Any argument starting with `$` is an angular service and will be added to the `$inject` property
-array
-* Any argument ending with `_` will be added to the `$inject` property array (angular strips the
-`_`)
-* All arguments following an argument which has neither `$` nor `_` , must not have `$` nor `_`
-(these are free arguments for {@link http://en.wikipedia.org/wiki/Currying currying})
+method and tries to infer what should be injected by using function argument names as dependency
+identifiers.
**IMPORTANT**
Minifiers/obfuscators change the names of function arguments and will therefore break the `$inject`