vue.js class rendering if true code example
Example 1: class binding vue
<div class="static"
v-bind:class="{ active: isActive, 'text-danger': hasError }"
></div>
Example 2: vuejs :class
<div
class="static"
v-bind:class="{ active: isActive, 'text-danger': hasError }"
></div>