W3cubDocs

/Angular

QueryParamsHandling

How to handle query parameters in a router link. One of:

  • "merge" : Merge new parameters with current parameters.
  • "preserve" : Preserve current parameters.
  • "replace" : Replace current parameters with new parameters. This is the default behavior.
  • "" : For legacy reasons, the same as 'replace'.

API

type QueryParamsHandling = 'merge' | 'preserve' | 'replace' | ''

Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/router/QueryParamsHandling