-
Notifications
You must be signed in to change notification settings - Fork 27.4k
Directives link API documentation did not describe or mention the controller param. #13028
Conversation
The 4th param for link() was not defined in the api doc, but used in the examples. This change adds the param and describes it.
It is not that simple 😄 Basically, there is a fifth parameter ( @hahla, could you make that change ? |
Yes sounds good, will update
|
Fantastic ! |
Adds reference to $compile for link function parameters and gives quick intro to 5th param transcludeFn which was also missing in doc.
@gkalpak updated and ready for your review |
|
||
* `scope` is an Angular scope object. | ||
* `element` is the jqLite-wrapped element that this directive matches. | ||
* `attrs` is a hash object with key-value pairs of normalized attribute names and their | ||
corresponding attribute values. | ||
* `controller` is the controller for the directive, if defined. | ||
* `transcludeFn` is a transclude linking function pre-bound to the correct translusion scope. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
translusion --> transclusion
@hahla, thx ! I left a couple of comments. LGTM with the comments addressed. |
Updates high level overview for directive link function based on PR comments
@gkalpak few comments:
Anyway let me know what you think. |
@gkalpak Looks like there was a CI error with the protractor execution, but I don't see any code errors on my side? How do we get Travis CI to re-run the tests, or should I send in a no-op commit to re-trigger the CI test? |
LGTM. I restarted the job (it was indeed a flake). Thx @hahla for working on this 👍 |
The `controller` and `transclude` parameters of the linking function were not mentioned in the description, but used in the examples. This commit improves the description and links to the `$compile` API docs for more details. Closes #13028
Backported to |
The 4th param for link() was not defined in the api doc, but used in the examples. This change adds the param and describes it.