Answers for "if else statment html vue"

0

elseif vuejs

<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>
  Not A/B/C
</div>
Posted by: Guest on May-10-2021

Browse Popular Code Answers by Language