class bind javascript code example Example: bind class <div v-bind:class="{ active: isActive }"></div>