I have components structured like this:
<component-1
v-if="this.showData"
></component-1>
<component-2
v-else
></compoment-2>
I would like to wrap a transition around each one. Is my only option explicitly dropping the v-else
and checking "v-if="!this.showData"
like:
<transition name="fade>
<component-1
v-if="this.showData"
></component-1>
</transition>
<transition name="fade>
<component-2
v-if="!this.showData"
></component-1>
</transition>
or is there another way I can keep my v-if/else -- it just feels cleaner to me.