Answers for "if else vue class"

2

if cluse in class in vue

<div  :class="{'collapse':true , 'show' : key == 0 ? true : false }">
           
</div>
Posted by: Guest on May-29-2021
14

vue conditional class

<div :class="{ 'prop-name': boolVar }"></div>
Posted by: Guest on March-15-2020

Browse Popular Code Answers by Language