2017-04-19 32 views
0

我在我的離子2頁腳有一個按鈕。它推動滑動確定,但不是彈出和後退過渡。它消失然後再現並且看起來不太好。我如何才能讓它像前向轉換那樣滑動?導航控制器彈出。工具欄按鈕消失,然後重新出現方向倒退。離子2

<ion-footer class="has-back-btn"> 
<ion-toolbar class="no-padding transparent"> 
<ion-buttons start>  
<button class="back-btn" tappable (click)="goBack()" ion-button icon-left> 
<i class="fa fa-chevron-left " aria-hidden="true"></i> Back 
</button> 
</ion-buttons> 
</ion-toolbar> 
</ion-footer> 
enter code here 

goBack() { 

    var navOptions = { 
     animation: 'ios-transition', 
     direction: back, 
     animate: true, 
    }; 

    if(this.isModal == true){ 
     this.navCtrl.pop(); 
    }else{ 
    this.navCtrl.pop(navOptions); 
    } 
} 

enter image description here

+0

請分享一些截圖。 –

+0

我已經更新了屏幕截圖。 –

回答

0

爲什麼不ü用這個

<button ion-button navPop>Go Back</button> 

像例如here

+0

感謝您指出這一點,但它仍然具有相同的效果。 –

相關問題