Dynamic class binding in javascript code example
Example 1: inline style vue
<div :style="{color: ' #f67e7e'}" ></div>
Example 2: vuejs :class
<div
class="static"
v-bind:class="{ active: isActive, 'text-danger': hasError }"
></div>
<div :style="{color: ' #f67e7e'}" ></div>
<div
class="static"
v-bind:class="{ active: isActive, 'text-danger': hasError }"
></div>