Binding to Class attribute in Vue.js

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.

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