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

Advanced: v-bind attribute syntax

Arrange the syntax for dynamic CSS class binding in Vue:

Items to put in order

  • >
  • :class="statusClass"
  • <span
  • {{ text }}</span>
Show the answer

Correct order:

  1. <span
  2. :class="statusClass"
  3. >
  4. {{ text }}</span>