ActivatedRoute params should include parent parameters, from root #20572
I'm submitting a...
Currently, the router has some special casing for when parent route parameters are inherited by child ActivatedRoutes. Specifically, they are only inherited if the parent route was either (1) configured without a
It seems like it'd be more useful to allow the option of just unconditionally flattening params from the root to the current route. This would allow child pages to have easy access to params defined in parent routes.
What is the motivation / use case for changing the behavior?
Child routes often need to access parameters defined on parent routes, and this would make it much simpler to reliably have the params available in the
If I'm reading it correctly, I think #11023 is a bit different. That discussion mentions sibling components and even components that are outside a