class binding vue

50

vue inline style bind -

<div v-bind:style="{ color: activeColor, fontSize: fontSize + 'px' }"></div>

vue class binding -

<div v-bind:class="[{ active: isActive }, errorClass]"></div>

Comments

Submit
0 Comments