Skip to content

Commit 9fbe7aa

Browse files
authored
Update component-attrs.md (#1183)
`data-status` is a attribute rather than property. It should be consistent with the description on line 100:`With this new configuration, our `data-status` attribute will be applied to our `input` element!`
1 parent 8f29b6d commit 9fbe7aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/guide/component-attrs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ app.component('date-picker', {
1818
})
1919
```
2020

21-
In the event we need to define the status of the date-picker component via a `data-status` property, it will be applied to the root node (i.e., `div.date-picker`).
21+
In the event we need to define the status of the date-picker component via a `data-status` attribute, it will be applied to the root node (i.e., `div.date-picker`).
2222

2323
```html
2424
<!-- Date-picker component with a non-prop attribute -->

0 commit comments

Comments
 (0)