Vue v-on event example
v-on Demo
<template>
<div style="text-align: center;" id="Application">
<button v-on:click="clickButton">{{ count }} clicks</button>
</div>
</template>
<script>
export default {
data() {
return {
count: 0
}
},
methods: {
clickButton() {
this.count = this.count + 1;
}
},
};
</script>