Answers for "binding class and style vue"

4

vue class binding

<div v-bind:class="{ active: isActive }"></div>
Posted by: Guest on December-19-2019
0

binding style vuejs

//Array Syntax

<div v-bind:class="[activeClass, errorClass]"></div>

data: {
  activeClass: 'active',
  errorClass: 'text-danger'
}
Posted by: Guest on September-24-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language