How `v-model` Actually Works
Learn how Vue's v-model works in the back and build it yourself.
We'll cover the following
The v-model
directive is arguably one of the essential features of Vue. It allows for the simple two-way binding of form elements and data and is usually the first thing people talk about when explaining Vue to beginners. It works with both data
, and computed
(as long as get
and set
are both implemented) and only needs a single attribute. Let’s see how it works.
Get hands-on with 1400+ tech skills courses.