mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-15 02:03:11 +00:00
docs($injector): correct misuse of $inject
$inject was used where $injector was appropriate; confusing and misleading.
This commit is contained in:
parent
5fd39e050b
commit
d1b49e25f1
1 changed files with 3 additions and 3 deletions
|
|
@ -100,15 +100,15 @@ function annotate(fn) {
|
||||||
*
|
*
|
||||||
* <pre>
|
* <pre>
|
||||||
* // inferred (only works if code not minified/obfuscated)
|
* // inferred (only works if code not minified/obfuscated)
|
||||||
* $inject.invoke(function(serviceA){});
|
* $injector.invoke(function(serviceA){});
|
||||||
*
|
*
|
||||||
* // annotated
|
* // annotated
|
||||||
* function explicit(serviceA) {};
|
* function explicit(serviceA) {};
|
||||||
* explicit.$inject = ['serviceA'];
|
* explicit.$inject = ['serviceA'];
|
||||||
* $inject.invoke(explicit);
|
* $injector.invoke(explicit);
|
||||||
*
|
*
|
||||||
* // inline
|
* // inline
|
||||||
* $inject.invoke(['serviceA', function(serviceA){}]);
|
* $injector.invoke(['serviceA', function(serviceA){}]);
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* ## Inference
|
* ## Inference
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue