Answers for "vue hidden element"

0

hidden vue js

<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>
  Не A/B/C
</div>
Posted by: Guest on June-03-2021
-1

hide element vue

// to hide element in vue.js use v-if
  <div v-if="seen" id="hide">
      <p>hide me </p>
  </div>
</div>

new Vue({
data:{
    seen: true
}
});
Posted by: Guest on August-26-2021

Browse Popular Code Answers by Language