when to use v-style vue code example
Example 1: vue class binding
<div v-bind:class="{ active: isActive }"></div>
Example 2: vue class binding
<div v-bind:class="[{ active: isActive }, errorClass]"></div>
<div v-bind:class="{ active: isActive }"></div>
<div v-bind:class="[{ active: isActive }, errorClass]"></div>