docs($injector): correct misuse of $inject

$inject was used where $injector was appropriate; confusing and
misleading.
This commit is contained in:
Arlen Christian Mart Cuss 2013-03-12 16:31:23 +11:00 committed by Igor Minar
parent 5fd39e050b
commit d1b49e25f1

View file

@ -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