Answers for "multiple class condition in vue"

2

bind style with condition in vue

v-bind:style= "[condition ? {styleA} : {styleB}]"
Posted by: Guest on July-20-2020
1

vue class binding multiple conditions

<a :class="['btn', (respond === 'responseFound' ? 'btn-yellow' : 'btn-default'), (type === 1 ? 'btn-block' : 'btn-xs center-block')]">
Posted by: Guest on October-29-2020

Browse Popular Code Answers by Language