🚧 PLEASE NOTE: An updated version of this course is available! see the Vue.js 3 Fundamentals with the Options API course. This course is outdated!
Dynamic Classes
A common need and use case for attribute bindings is to manipulate the look of elements through CSS classes or style attributes. To make this task easier than ever, Vue provides special enhancements when v-bind is used with the class or style attribute. In this lesson, we're learning how to apply classes based on our Vue data conditionally.
- Chapter 1
