Skip to content

Glossary: Vue.js

v-model

Also written: v-model.trim, v-model.number, .trim, .number

A directive that ties a form field to a ref in both directions. `.trim` strips surrounding spaces and `.number` converts the text to a number.

Where the book teaches it

Related terms

Two-way bindingdefineModelref