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

Vue 3 v-model Directive

Vue 3 v-model Directive

Vue3 Built-in Directives Vue 3 Built-in Directives


v-model The directive is used to create two-way data binding on form input elements and components.


Basic Explanation

v-model The directive creates two-way data binding on form elements and components. It automatically selects the correct method to update the element based on the control type.


Basic Usage

1. Text Input

Example

2. Checkbox

Example


Modifiers

Example


Vue3 Built-in Directives Vue 3 Built-in Directives