Answers for "vue js multiple class condition"

2

bind style with condition in vue

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

vue conditional class

<div :class="{ 'prop-name': boolVar }"></div>
Posted by: Guest on March-15-2020

Browse Popular Code Answers by Language