ionic2 自定义返回按钮

<ion-navbar hideBackButton="true">

    <ion-buttons left>
      <button ion-button icon-only (click)="goBack()">
        <ion-icon ios="ios-arrow-back" md="md-arrow-back"></ion-icon>
      </button>
    </ion-buttons>

<ion-title>title</ion-title>
</ion-navbar>



goBack(){
        this.navCtrl.pop();
    }

展开阅读全文

没有更多推荐了,返回首页