Answers for "custom class if value tru vue js"

C#
4

if cluse in class in vue

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

vue conditional class

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

C# Answers by Framework

Browse Popular Code Answers by Language