Answers for "how to use if else in vue js"

1

if else if vue

<div v-if="type === 'A'">
  A
</div>
<div v-else-if="type === 'B'">
  B
</div>
<div v-else-if="type === 'C'">
  C
</div>
<div v-else>
  No A, B or C
</div>
Posted by: Guest on March-11-2021
-2

vue if

<h1 v-if="variable">Vue is awesome!</h1>
Posted by: Guest on December-02-2020

Browse Popular Code Answers by Language