1
我的Ionic 2應用程序在我的主頁上顯示模式時出現問題:當用戶關閉模式並返回主頁時,菜單按鈕不存在。只有在顯示該模式時纔會發生這種情況。不知道我是否用navController做錯了什麼。任何人都面臨這個問題我的網頁的標題是這樣的:菜單按鈕在顯示模式後消失
<ion-header>
<ion-navbar>
<ion-buttons left class="menu-button">
<button ion-button menuToggle>
<ion-icon name="menu"></ion-icon>
</button>
</ion-buttons>
<ion-title text-center>
<div class="text-header">Home Page</div>
</ion-title>
</ion-navbar>
</ion-header>
我把這樣的模式:
const modal = this.modalCtrl.create(SetMotivoIntervalo, {chamada_id: this.chamada_id});
modal.present();
以及關閉模式:
onCloseModal(){
this.viewCtrl.dismiss();
}