You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- A `v-on` event listener like `@click` will be exposed on the object as a function under `$attrs.onClick`.
This does not make it entirely clear that the conventional kebab casing of event names would be camel cased i.e. @my-event would result in an attr named onMyEvent.
And it also does not document how any uppercase letter makes it simply prefix on: to the name with no transform, like @My-event yields on:My-event
The text was updated successfully, but these errors were encountered:
Upon further investigation it only generates the on:My-event type for elements which are not components and it is harder to get your hands on those event handlers. The full camel case transformation should probably be more clearly documented though.
docs/src/guide/components/attrs.md
Line 109 in fe96839
This does not make it entirely clear that the conventional kebab casing of event names would be camel cased i.e.
@my-event
would result in an attr namedonMyEvent
.And it also does not document how any uppercase letter makes it simply prefix
on:
to the name with no transform, like@My-event
yieldson:My-event
The text was updated successfully, but these errors were encountered: