Answers for "vuejs if in class"

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
1

vue class add if

<div class="" :class="[
                    $ua.isFromPc() !== true ? '':'fs-5 p-3', ' border bg-secondary text-white  rounded_3 test'
                ]" :id="`answer${key}`" style="cursor: pointer" @click="ClickingTest($event)">{{ value }}
          </div>
Posted by: Guest on November-30-2021

C# Answers by Framework

Browse Popular Code Answers by Language