W3cubDocs

/Angular

ParamMap

A map that provides access to the required and optional parameters specific to a route. The map supports retrieving a single value with get() or multiple values with getAll().

API

interface ParamMap {
  has(name: string): boolean;
  get(name: string): string | null;
  getAll(name: string): string[];
  readonly keys: string[];
}

has

boolean

Reports whether the map contains a given parameter.

@paramnamestring

The parameter name.

@returnsboolean

get

string | null

Retrieves a single value for a parameter.

@paramnamestring

The parameter name.

@returnsstring | null

getAll

string[]

Retrieves multiple values for a parameter.

@paramnamestring

The parameter name.

@returnsstring[]

keys

string[]

Names of the parameters in the map.

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/ParamMap