Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

docs($provide): Decorator method in summary #14562

Closed
wants to merge 3 commits into from
Closed
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/auto/injector.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,8 @@ function annotate(fn, strictDi, name) {
* * {@link auto.$provide#service service(class)} - registers a **constructor function**, `class`
* that will be wrapped in a **service provider** object, whose `$get` property will instantiate
* a new object using the given constructor function.
* * {@link auto.$provide#decorator decorator(name)} - registers a **service decorator** with the
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

service decorator is not correct, as not only services can be decorated. You should call it decorator function. In the function signature, the decorator fn is also missing: decorator(name, decoratorFn)

* {@link auto.$injector $injector}, `name` the name of the service to decorate.
*
* See the individual methods for more information and examples.
*/
Expand Down