Skip to content

Commit

Permalink
Add naming requirement for outlet controller identifiers to docs (#679)
Browse files Browse the repository at this point in the history
* Add naming requirement for outlet controller identifiers to docs

* Update outlets.md

---------

Co-authored-by: David Heinemeier Hansson <david@hey.com>
  • Loading branch information
dnlgrv and dhh committed May 29, 2023
1 parent 7593959 commit f781cd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/reference/outlets.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ While a **target** is a specifically marked element **within the scope** of its

## Attributes and Names

The `data-search-result-outlet` attribute is called an _outlet attribute_, and its value is a [CSS selector](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors) which you can use to refer to other controller elements which should be available as outlets on the _host controller_.
The `data-search-result-outlet` attribute is called an _outlet attribute_, and its value is a [CSS selector](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors) which you can use to refer to other controller elements which should be available as outlets on the _host controller_. The outlet identifier in the host controller must be the same as the target controller's name.

```html
data-[identifier]-[outlet]-outlet="[selector]"
Expand Down

0 comments on commit f781cd6

Please sign in to comment.