angular - 如何导航到保留矩阵参数的父路由?
问题描述
在Angular
应用程序中,我需要导航到保留矩阵参数的路由的父级。
我想要获得的是从到导航
http://localhost:4200/a/b;param1=xyz;param2=zxy/c
到http://localhost:4200/a/b;param1=xyz;param2=zxy
但是当我尝试使用router.navigate('..',{relativeTo: this.route.url})
我得到的内容进行导航时http://localhost:4200/a/b
,路由参数b
会丢失。
如何b
从子路由导航回保持其参数不变?
解决方案
推荐阅读
- c++ - MSVC 19 删除继承的构造函数
- python - 跨两列排序,一列按绝对值
- wordpress - 古腾堡编辑器中未更新样式
- python - 局部异常因子真实世界示例
- php - PHP 7 默认异步处理请求吗?
- vue.js - vuetify 组合框获取搜索字符串值作为模糊输入
- javascript - 使用 Sequelize Create 方法时如何仅返回特定属性
- asp.net-mvc - ASP MVC 标识动态连接字符串
- jquery - 以编程方式选择多个节点的动态树不起作用
- python - 未找到带有参数 '('',)' 的 'edit_post' 的反向操作。尝试了 1 种模式:['edit_post/(?P
\\d+)/$']