Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49082

Tab vs Page OnInit?

$
0
0

How is a tab in my Ionic app different from a page? Why does the page reload (init) on every visit but a tab stays rendered (does not run onInit)? I’m missing some basic concept here.

All the topics I’ve seen about this lifecycle issue center around trying to run OnInit after re-entry. I want the opposite. I have pages that I want to persist after navigating away from them.

/ tab / home <- init once
/ tab / browse <- init once
/ tab / browse / subbrowse <- init on each view

I want the sub browse page to behave like top level tab pages.

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 49082

Trending Articles



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