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:
- <span
- :class="statusClass"
- >
- {{ text }}</span>