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.
第二个问题,你可以尝试一下官方API中NavController的生命周期,加入ionViewDidEnter(){}
![](http://img.php.cn/upload/image/000/000/000/b1a0142bcc76972c0d5fb42313e679ae-0.png)