ActivatedRoute in Directive: Snapshot.params are not getting updated #55393
Labels
area: router
needs reproduction
This issue needs a reproduction in order for the team to investigate further
Milestone
Which @angular/* package(s) are the source of the bug?
core
Is this a regression?
Yes
Description
When injecting
ActivatedRoute
in a directive and trying to get the route params callingthis.activatedRoute.snapshot.params
, theparams
returned are not the ones of the current route, but the ones from the first route visited. The issue appeared after updating@angular/core
and@angular/router
from17.2.2
to17.3.1
. In17.2.2
it works as expected, theparams
returned are the ones of the current route.Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
No response
Please provide the environment you discovered this bug in (run
ng version
)Anything else?
No response
The text was updated successfully, but these errors were encountered: