Skip to content

feat(router): Add partial ActivatedRouteSnapshot information to canMatch params#66298

Merged
atscott merged 3 commits intoangular:mainfrom
atscott:prematchsnapshot
Jan 26, 2026
Merged

feat(router): Add partial ActivatedRouteSnapshot information to canMatch params#66298
atscott merged 3 commits intoangular:mainfrom
atscott:prematchsnapshot

Conversation

@atscott
Copy link
Contributor

@atscott atscott commented Jan 2, 2026

This commit adds partial ActivatedRouteSnapshot information as the
third parameter of the canMatch guard.

resolves #49309

@atscott atscott added target: minor This PR is targeted for the next minor release feature Label used to distinguish feature request from other issues area: router labels Jan 2, 2026
@ngbot ngbot bot added this to the Backlog milestone Jan 2, 2026
@angular-robot angular-robot bot added the detected: feature PR contains a feature commit label Jan 2, 2026
@atscott atscott force-pushed the prematchsnapshot branch 4 times, most recently from 831626d to 8489155 Compare January 6, 2026 18:39
extracts ActivatedRouteSnapshot creation to a shared helper method
…ier re-use

This adds a type for the partial `ActivatedRouteSnapshot` that includes
only information up to a point in the matching algorithm.
…atch` params

This commit adds partial `ActivatedRouteSnapshot` information as the
third parameter of the `canMatch` guard.

resolves angular#49309
@atscott atscott marked this pull request as ready for review January 16, 2026 19:36
Copy link
Contributor

@thePunderWoman thePunderWoman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

reviewed-for: fw-general, angular-dev, public-api

@thePunderWoman thePunderWoman removed the request for review from mmalerba January 16, 2026 19:39
@atscott atscott added the action: merge The PR is ready for merge by the caretaker label Jan 26, 2026
@atscott atscott merged commit b51bab5 into angular:main Jan 26, 2026
21 checks passed
@atscott
Copy link
Contributor Author

atscott commented Jan 26, 2026

This PR was merged into the repository. The changes were merged into the following branches:

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Feb 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: router detected: feature PR contains a feature commit feature Label used to distinguish feature request from other issues target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Include URL parameters in canMatch interface

2 participants