Home  >  Q&A  >  body text

javascript - App and Nav in ionic2

What is the difference between

this.app.getRootNav()
and this.navCtrl.push()?
In fact, the main reason is that I don’t understand the relationship and difference between the App component and Nav?

Also,
tabs does not refresh when the component switches tab. Is there any way to refresh the page when switching?
Ask for advice from the great god.

仅有的幸福仅有的幸福2733 days ago609

reply all(1)I'll reply

  • 習慣沉默

    習慣沉默2017-05-19 10:45:30

    Second question, you can try the life cycle of NavController in the official API and add ionViewDidEnter(){}

    reply
    0
  • Cancelreply