Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Vue 3 v-on Directive

Vue 3 v-on Directive

Vue3 Built-in Directives Vue 3 Built-in Directives


v-on The directive is used to bind event listeners, listening for DOM events or custom events.


Basic Explanation

v-on The directive is used to bind event handler functions to elements. You can use it to listen for native DOM events or events emitted by custom components.


Basic Usage

Example


Vue3 Built-in Directives Vue 3 Built-in Directives