Q:

vue class binding multiple conditions

<figure :style="[item.main_featured ? {'background': 'url(' + item.main_featured + ') center no-repeat'} : {'background': '#FFF'}]">
1
v-bind:style= "[condition ? {styleA} : {styleB}]"
0
<a :class="['btn', (respond === 'responseFound' ? 'btn-yellow' : 'btn-default'), (type === 1 ? 'btn-block' : 'btn-xs center-block')]">
0

New to Communities?

Join the community