我的 ionic 2 页脚中有一个按钮。它可以通过 push 滑动,但不能通过 pop 和后退转换。它消失然后重新出现,看起来不太好。我怎样才能让它像向前过渡一样滑动?
<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);
}
}