Coding task · Vue.js course · Module 2: Template Syntax

Practice: Class Binding

Bind classes like an engineer configuring operating modes of the control panel.

Task

Use :class with object syntax and array syntax to conditionally add classes.