Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/guide/components/attrs.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Some notes:

- Unlike props, fallthrough attributes preserve their original casing in JavaScript, so an attribute like `foo-bar` needs to be accessed as `$attrs['foo-bar']`.

- A `v-on` event listener like `@click` will be exposed on the object as a function under `$attrs.onClick`.
- A `v-on` event listener like `@click` will be exposed on the object as a function under `$attrs.onClick`. Hyphenated event names are converted to camelCase, so `@my-event` is exposed as `$attrs.onMyEvent`.

Using our `<MyButton>` component example from the [previous section](#attribute-inheritance) - sometimes we may need to wrap the actual `<button>` element with an extra `<div>` for styling purposes:

Expand Down