Vue.js · Directive
v-on
v-on listens for events and runs a method or inline statement. Its shorthand is @.
Last updated
Syntax
v-on:event="handler"
@event="handler"In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
event modifiers$eventcustom eventsv-once