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

Commit 1f05b96

Browse files
ademurigkalpak
authored andcommitted
docs(component): document 'require' in angular.component
Closes #14429
1 parent c4fb0ec commit 1f05b96

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ng/compile.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1047,6 +1047,9 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
10471047
* See {@link ng.$compile#-bindtocontroller- `bindToController`}.
10481048
* - `transclude` – `{boolean=}` – whether {@link $compile#transclusion content transclusion} is enabled.
10491049
* Disabled by default.
1050+
* - `require` - `{Object<string, string>=}` - requires the controllers of other directives and binds them to
1051+
* this component's controller. The object keys specify the property names under which the required
1052+
* controllers (object values) will be bound. See {@link ng.$compile#-require- `require`}.
10501053
* - `$...` – additional properties to attach to the directive factory function and the controller
10511054
* constructor function. (This is used by the component router to annotate)
10521055
*

0 commit comments

Comments
 (0)