My vue component is like this :
<template>
<a class="btn btn-block" :class="[response == 'responseFound' ? ' btn-yellow' : ' btn-default']">
...
</a>
</template>
It works
But, I want to combine it to be one class
I try like this :
<template>
<a :class="'btn' [response == 'responseFound' ? ' btn-yellow' : ' btn-default'] ' btn-block'">
...
</a>
</template>
But it does not work
How can I solve it?
:class="'btn ' + ((response == 'responseFound') ? 'btn-yellow' : 'btn-default') + ' btn-block'">