← All notes

Vue v-model syncs form inputs with component state

Answer: v-model syncs a form input with JavaScript state. It replaces a manual pairing of a :value binding and an @input listener, and it expands to different DOM property and event pairs depending on the element.

Elements

Text inputs and <textarea> use the value property and the input event. Checkbox and radio inputs use checked and change. <select> uses value and change. v-model ignores initial value, checked, or selected HTML attributes and treats the bound JavaScript state as the source of truth.

Compiler

transformModel uses a base transform first. For input, textarea, or select, directiveToUse starts as V_MODEL_TEXT, then switches for radio, checkbox, select, or a dynamic type.

See also

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources and notices: Vue.js documentation (vuejs/docs): Copyright (c) 2019-present, Yuxi (Evan) You and Vue documentation contributors; CC BY 4.0, text only (https://raw.githubusercontent.com/vuejs/docs/main/LICENSE). Vue.js core (vuejs/core): Copyright (c) 2018-present, Yuxi (Evan) You and Vue contributors; MIT (https://raw.githubusercontent.com/vuejs/core/main/LICENSE). Text was condensed and changed from the originals.

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Vue.js docs, Form Input Bindings, CC BY 4.0, text only (vuejs/docs); Vue.js core, compiler-dom vModel transform, MIT (vuejs/core). Notices: Vue.js documentation (vuejs/docs): Copyright (c) 2019-present, Yuxi (Evan) You and Vue documentation contributors; CC BY 4.0, text only (https://raw.githubusercontent.com/vuejs/docs/main/LICENSE). Vue.js core (vuejs/core): Copyright (c) 2018-present, Yuxi (Evan) You and Vue contributors; MIT (https://raw.githubusercontent.com/vuejs/core/main/LICENSE).

Cite this

Permanent ID: iil:note:q4bnn6mp

iinventedlight. 2026. "Vue v-model syncs form inputs with component state." iinventedlight Library, iil:note:q4bnn6mp, version of 2026-11-10. https://iinventedlight.com/library/notes/vue-form-input-bindings/. License: CC-BY-4.0.

@misc{iil_note_q4bnn6mp,
  author = {{iinventedlight}},
  title = {{Vue v-model syncs form inputs with component state}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-10},
  url = {https://iinventedlight.com/library/notes/vue-form-input-bindings/},
  note = {Permanent ID iil:note:q4bnn6mp. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com.

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/vue-form-input-bindings.md.