v-model on component vue code example
Example 1: vue v-model
<input v-model="message" placeholder="edit me">
<p>Message is: {{ message }}</p>
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.