经验:
1.隐藏导航的返回按钮(hideBackButton)<ion-navbar hideBackButton="true">
2.重写导航返回按钮的点击事件
· import { Navbar } from 'ionic-angular';
export class OrientationStudentDormOrderPage {
@ViewChild(Navbar) navBar: Navbar;
constructor(public navCtrl: NavController) { }
ionViewDidLoad() {
this.navBar.backButtonClick = (e: UIEvent) => {
this.navCtrl.popToRoot();
}
}