You can use v-if and v-else directives for conditional rendering, as follows:
<div v-if="Math.random() > 0.5">
Now you see me
</div>
<div v-else>
Now you don't
</div>
More details here.
Today I Learned
You can use v-if and v-else directives for conditional rendering, as follows:
<div v-if="Math.random() > 0.5">
Now you see me
</div>
<div v-else>
Now you don't
</div>
More details here.