angular - 角度嵌套导航和路由器插座
问题描述
现在我有router-outlet
渲染页面的主要页面 - Page1、Page2 和 Page3,这是标准和简单的。在 Page2Component 中,我有第二个<router-outlet>
对“Section A”和“Section B”routerLink 动作做出反应。
在 SectionB 组件中,我有“转到结果”按钮,我想要实现的是呈现另一个组件 - 第二个路由器出口中的结果组件 - url 必须相应更改https://somepage.com/page2/section-b/results
这是否可能?那是我缺少的部分。请在此处查看我的堆栈闪电战: https ://stackblitz.com/edit/angular-router-basic-example-stobmt
?file=app/app.routing.module.ts
解决方案
推荐阅读
- components - Angular中的Ag-Grid cellRenderer单击事件
- latex - 是否可以根据 TikZ 的维恩图代码为 r 考试创建一个问题?
- flutter - 避免在 Setstate() Flutter 上重新加载 Listview
- c++ - 具有自定义比较器和 O(n) 时间的 priority_queue c++
- import - 如何覆盖实体类以向导入类型的下拉列表添加新选项?PrestaShop 1.7
- sql-server - SQL 将字符串拆分为列
- python - 在 GEOPANDA 下制作复杂的过滤器
- reactjs - 如何在 Jest 中从 react-i18next 模拟 Trans 组件
- cloud-init - 云初始化运行命令中的列表与字符串
- powershell - 找到字符串后使用 Powershell 将内容添加到文本日志文件