[Vuejs]-Vuejs Conditional class using compute

0👍

you can set multiple classes to vue element by using:

<my-componenet :class="['class1', condition1 ? 'class2' : 'class3']" ..
// condition1 can be anything data, computed, prop, ...

also you can check doc for more details

Leave a comment