Skip to content

Commit

Permalink
Update Values documentation for location of data attributes (#705)
Browse files Browse the repository at this point in the history
Co-authored-by: LB (Ben Johnston) <mail@lb.ee>
Co-authored-by: Marco Roth <marco.roth@intergga.ch>
  • Loading branch information
3 people committed Jul 22, 2023
1 parent d268067 commit 7b810ec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/reference/values.md
Expand Up @@ -10,11 +10,12 @@ You can read and write [HTML data attributes](https://developer.mozilla.org/en-U
<meta data-controller="callout" data-callout-text-value="data-loader-url-value=&quot;/messages&quot;">

```html
<div data-controller="loader"
data-loader-url-value="/messages">
<div data-controller="loader" data-loader-url-value="/messages">
</div>
```

As per the given HTML snippet, remember to place the data attributes for values on the same element as the `data-controller` attribute.

<meta data-controller="callout" data-callout-text-value="static values = { url: String }">
<meta data-controller="callout" data-callout-text-value="this.urlValue">

Expand Down

0 comments on commit 7b810ec

Please sign in to comment.