ionic-framework - Uncaught (in promise):导航堆栈至少需要一个根页面
问题描述
我想将按钮设置回我孩子的页面,我正在使用弹出功能但它不起作用。
我正在使用此代码
import { IonicPage, NavController,} from 'ionic-angular';
constructor(public navCtrl: NavController, ) {
this.contactArray=JSON.stringify(this.navParams.get("contactArray"));
if(!this.contactArray || this.contactArray == ''){
this.navCtrl.pop();
}else{
this.loadContactDetails();
}
}
我得到这个
错误:未捕获(承诺中):导航堆栈在 c (polyfills.js:3) 处需要至少一个根页面
请帮忙
谢谢
解决方案
推荐阅读
- class - 如何在类成员函数中加入智能指针以进行实时分配?
- reactjs - 使用 React Router 打开一个不同的网站到一个新窗口
- html - 如何从插入框阴影中删除左轮廓虚线?
- spinnaker - 您能否根据正在运行的不同管道停止一个 Spinnaker 管道?
- php - 从数据库显示的 php long 目录(循环问题)
- ruby-on-rails - “rails new”不创建新应用程序
- sql - 折线图的 Tableau 12 个月滚动计算
- scala - scala 中的四舍五入百分比和总计应匹配 100
- python - 如何将日期时间作为参数传递给 Python MWS 库函数?
- jquery - 使用 jQuery 更改链接颜色(激活时)