aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArlen Christian Mart Cuss2013-03-12 16:31:23 +1100
committerIgor Minar2013-03-12 13:00:03 -0700
commitd1b49e25f1c8e303d57f44d1d3417dbefb194a5c (patch)
tree01db97089d58b241f31b091fafe00f0e27f7f959
parent5fd39e050b047fb5f4359eb3ebfde76f257b5ecf (diff)
downloadangular.js-d1b49e25f1c8e303d57f44d1d3417dbefb194a5c.tar.bz2
docs($injector): correct misuse of $inject
$inject was used where $injector was appropriate; confusing and misleading.
-rw-r--r--src/auto/injector.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/auto/injector.js b/src/auto/injector.js
index d39e2aa9..6cebe68f 100644
--- a/src/auto/injector.js
+++ b/src/auto/injector.js
@@ -100,15 +100,15 @@ function annotate(fn) {
*
* <pre>
* // inferred (only works if code not minified/obfuscated)
- * $inject.invoke(function(serviceA){});
+ * $injector.invoke(function(serviceA){});
*
* // annotated
* function explicit(serviceA) {};
* explicit.$inject = ['serviceA'];
- * $inject.invoke(explicit);
+ * $injector.invoke(explicit);
*
* // inline
- * $inject.invoke(['serviceA', function(serviceA){}]);
+ * $injector.invoke(['serviceA', function(serviceA){}]);
* </pre>
*
* ## Inference