One of my most common use cases is to pull of the params from the route on a ROUTER_NAVIGATION action.
Is there a good way to determine the ActivatedRoute that will be navigated to? I'm currently looping over all the firstChilds of the root on the RouterStateSnapshot.
I think it would be even better if the soon to be ActivatedRouteSnapshot (the childRoute) was already a part of the RouterNavigationPayload.
One of my most common use cases is to pull of the params from the route on a
ROUTER_NAVIGATION
action.Is there a good way to determine the
ActivatedRoute
that will be navigated to? I'm currently looping over all thefirstChild
s of theroot
on theRouterStateSnapshot
.I think it would be even better if the soon to be
ActivatedRouteSnapshot
(the childRoute) was already a part of theRouterNavigationPayload
.