0

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.

Angad
  • 1,144
  • 3
  • 18
  • 39
  • Yes you can. I did it like in this tutorial and i am able to select all params of the route https://dev.to/salimchemes/how-to-implement-ngrx-router-store-4552 – Deitsch May 12 '22 at 07:39

1 Answers1

0

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

timdeschryver
  • 14,415
  • 1
  • 19
  • 32