Binding to Class attribute in Vue.js

Last Updated: June 20, 2018

There are several ways you can bind to CSS class. We will see them one by one
Object Syntax

You can bind css class using {}. You just to put the name of the css class.

Binding Class - Object Syntax

If IsActive is true it will apply the redbox CSS class to Div element