Answers for "vue @on"

4

@keyup.enter vue

<input v-on:keyup.enter="submit">
<!-- Also works like this: -->
<input @keyup.enter="submit">
Posted by: Guest on July-16-2020
1

vuejs v-on

<div v-on:javascriptEvent = "method"></div>

<!-- v-on:click <=> @click -->
Posted by: Guest on December-16-2020

Browse Popular Code Answers by Language