vue class v-model code example
Example 1: vue class binding
<div v-bind:class="[{ active: isActive }, errorClass]"></div>
Example 2: what does v-model do in vue
Although a bit magical, v-model is essentially syntax sugar for updating
data on user input events, plus special care for some edge cases.