ionic-framework - 如何使用 Ionic-4 中的路由导航同一页面?
问题描述
我想使用 Ionic 4 中的路由导航同一页面。
我已经尝试过此代码但无法正常工作this.navCtrl.navigateRoot('super');
itemClicked(event) {
this.navCtrl.navigateRoot('super');
}
我希望页面导航到 Ionic 4 中的同一页面
解决方案
{
path: '',
component: MyPage
},
{
path: ':id',
component: MyPage
}
推荐阅读
- c++ - ::lock() 函数如何在 std::weak_ptr 上工作?
- google-apps-script - 实时获取 Google Form(Quiz) 分数
- c# - 使用 ASP.NET 通过 SQL 表显示存储在文本框中的数据
- ios - 如何使用 iOS 声音进行推送通知?
- bash - 如何在 qsub 上使用变量?
- java - 将多个@params 传递给JPA 中的存储过程
- php - 表单输入值未在操作中传递
- jenkins - 即使元素存在,机器人框架也无法检测到元素的可能原因是什么?
- javascript - 如果不在数组中,则用于更新的 Firestore 规则
- python - Pandas - 如何在不使用循环的情况下为重复系列分配不同的类?