Question - How do you use event handlers?
Answer -
You can use event handlers in vue similar to plain javascript. The method calls also support the special $event variable.
Submit
methods: {
show: function (message, event) {
// now we have access to the native event
if (event) event.preventDefault()
console.log(message);
}
}