Put in order · Vue.js course · Module 1: Vue and Vite

Advanced: v-model syntax on input

Arrange the syntax of an input with two-way data binding in Vue:

Items to put in order

  • v-model="message"
  • placeholder="Type..."
  • <input
  • />
Show the answer

Correct order:

  1. <input
  2. v-model="message"
  3. placeholder="Type..."
  4. />