v-bind class set by view code example Example: v-bind class v-bind:class="{ active: isActive, 'text-danger': hasError }"