'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.



Solution 1:[1]

You can enable the paramsInheritanceStrategy: 'always' option from the Angular Router.

https://timdeschryver.dev/blog/til-paramsinheritancestrategy-to-always-have-access-to-parent-route-info

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 timdeschryver