Skip to content

Commit e562486

Browse files
KevinBrogannetman92
authored andcommitted
docs($provide): add array annotation type to $provide.decorator parameter
The $provide.decorator function, as per the documentation, "is called using the auto.injector.invoke method and is therefore fully injectable." The current @param contradicts this by stating that only a functions may be used as an argument. Closes angular#11507
1 parent b47fd6c commit e562486

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/auto/injector.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ function annotate(fn, strictDi, name) {
593593
* object which replaces or wraps and delegates to the original service.
594594
*
595595
* @param {string} name The name of the service to decorate.
596-
* @param {function()} decorator This function will be invoked when the service needs to be
596+
* @param {Function|Array} decorator This function will be invoked when the service needs to be
597597
* instantiated and should return the decorated service instance. The function is called using
598598
* the {@link auto.$injector#invoke injector.invoke} method and is therefore fully injectable.
599599
* Local injection arguments:

0 commit comments

Comments
 (0)