vue bind class in v-for code example
Example 1: v-bind class
v-bind:class="{ active: isActive, 'text-danger': hasError }"
Example 2: vue class binding
<div v-bind:class="{ active: isActive }"></div>
v-bind:class="{ active: isActive, 'text-danger': hasError }"
<div v-bind:class="{ active: isActive }"></div>