add css class using vue code example
Example: vue if echo class
<div class="defaultclass" :class="condition?' conditionalclasstoappend':''"></div>
<div class="defaultclass" :class="condition?' conditionalclasstoappend':''"></div>