Skip to content

feat(router): add options to convertToParamMap - #70128

Open
brysonbw wants to merge 1 commit into
angular:mainfrom
brysonbw:feat-convert-to-param-map-options-55968
Open

feat(router): add options to convertToParamMap#70128
brysonbw wants to merge 1 commit into
angular:mainfrom
brysonbw:feat-convert-to-param-map-options-55968

Conversation

@brysonbw

@brysonbw brysonbw commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.dev application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

There is currently no way to configure options like case-insensitive key lookups without manually transforming the input parameters object.

Issue Number: #55968

What is the new behavior?

convertToParamMap now accepts an optional second argument options?: ParamMapOptions:

  • Introduces ParamMapOptions interface with a caseInsensitive?: boolean property.
  • When caseInsensitive: true is provided, parameter key lookups (get, getAll, has, keys) behave in a case-insensitive manner.
  • Default behavior remains backwards compatible and case-sensitive when options are omitted.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

Allows configuring ParamMap behavior, starting with case-insensitive key lookups.
@pullapprove
pullapprove Bot requested a review from JeanMeche August 8, 2026 07:50
@angular-robot angular-robot Bot added detected: feature PR contains a feature commit area: router labels Aug 8, 2026
@ngbot ngbot Bot added this to the Backlog milestone Aug 8, 2026
@JeanMeche
JeanMeche requested a review from atscott August 9, 2026 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: router detected: feature PR contains a feature commit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant