Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 230087

Understanding how routes and components work in Ionic (component re created instead of reused)

$
0
0

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.

v-if vs. v-show reference


Viewing all articles
Browse latest Browse all 230087

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>