add a class on if condition in vue js code example
Example: vue if echo class
<div class="defaultclass" :class="condition?' conditionalclasstoappend':''"></div>
<div class="defaultclass" :class="condition?' conditionalclasstoappend':''"></div>