Skip to content

Glossary: Vue.js

defineModel

A compiler macro that gives a component its own `v-model`: it returns a ref linked to the parent's value, so changing it updates the parent. QtyPicker uses it for quantity.

Where the book teaches it

Related terms

v-modelPropEmitCompiler macro