Skip to content
Discussion options

You must be logged in to vote

The template attributes all get mapped down into VNode props (not to be confused with component props). The VNode props are the properties passed into the h() calls in a render function.

For v-on (or equivalently @), it'll be mapped onto a VNode prop prefixed with on. e.g. @click becomes the VNode prop onClick. That part is documented at:

There are a few other places in the docs that allude to this, but that's probably the most explicit. You can also see this using the Vue Playground to inspect the compiled output for a template with a listener.

Inside the child component, any VNode prop can be turned into a component prop by list…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Serhansolo
Comment options

Answer selected by Serhansolo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants