Ionic version:
[ ] 1.x
[x] 2.x RC5
[x] bug report
[ ] feature request
[ ] support request
Current behavior:
按下导航栏后退按钮或Android手机上的自定义“弹出”按钮或本机硬件后退按钮后,没有转换过程 .
它适用于'离子服务'但不适用于'作为apk运行'
Expected behavior:
它应该转换回navcontroller堆栈的最后一页 .
Steps to reproduce:
点击“原生模式”中的导航栏后退按钮
Related code:
<ion-navbar hideBackButton="true">
<button (click)="back()" ion-button icon-left clear small>
<ion-icon name="arrow-back"></ion-icon>
<div> Voltar</div>
</button>
</ion-navbar>
public back = (url) => this.navCtrl.pop();
其他信息:
Zenfone 2
离子信息:(从终端/ cmd提示符运行离子信息并粘贴下面的输出):
您的系统信息:ordova CLI:6.4.0 Ionic Framework版本:2.0.0-rc.5 Ionic CLI版本:2.1.18 Ionic App Lib版本:2.1.9 Ionic App脚本版本:1.0.0 ios-deploy版本:未安装ios-sim版本:未安装操作系统:Windows 10节点版本:v7.4.0 Xcode版本:未安装
1 回答
在html中你没有向后退函数传递任何参数,但是在你的ts文件中,你正在为你的后退函数接受一个名为“url”的参数 .