[英]NGRX/router select parent route data
I want to get the route data for the parent route from the current route.我想从当前路由获取父路由的路由数据。 Is it possible?
是否可以? The documentation here https://ngrx.io/guide/router-store/selectors shows only how to get the route data from the current route.
这里的文档https://ngrx.io/guide/router-store/selectors只展示了如何从当前路由获取路由数据。
You can enable the paramsInheritanceStrategy: 'always'
option from the Angular Router.您可以从 Angular 路由器启用
paramsInheritanceStrategy: 'always'
选项。
https://timdeschryver.dev/blog/til-paramsinheritancestrategy-to-always-have-access-to-parent-route-info https://timdeschryver.dev/blog/til-paramsinheritancestrategy-to-always-have-access-to-parent-route-info
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.