Vue Vmodel

Posted on  by admin
You’re browsing the documentation for v2.x and earlier.

For v3.x, click here. You can use the v-model directive to create two-way data bindings on form input, textarea, and select elements.

It automatically picks the correct way to update the element based on the input type.

Although a bit magical, v-model is essentially syntax sugar for updating data on user input events, plus special care for some edge cases.

v-model will ignore the initial value, checked, or selected attributes found on any form elements.

Wenfang Du