我的离子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);
}
}