• Overview
@angular/router

ParamMap

interface

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().

  
    interface ParamMap {}
  
  

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.

Jump to details