So, v-if
will remove the component from the DOM which is a Vue thing, not an Ionic thing. If you want the component to stick around, you need to use v-show
. v-show
will add your three components to the DOM and use CSS to hide the ones that shouldn’t be shown based on the variable passed to v-show
.
↧
Understanding how routes and components work in Ionic (component re created instead of reused)
↧