[Vuejs]-Not import module with Vue.js if using Internet Explorer

0👍

You can try to use v-if and v-else block to conditionally render the component.

Example:

<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>

References:

(1) Conditional Rendering

(2) Conditional component rendering

(3) Vue.js router – conditional component rendering

Leave a comment