Answers for "svuejs class conditional"

2

bind style with condition in vue

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

class binding vue

<div class="static"
  v-bind:class="{ active: isActive, 'text-danger': hasError }"
></div>
Posted by: Guest on February-19-2020

Browse Popular Code Answers by Language