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 {
keys: string[]
has(name: string): boolean
get(name: string): string | null
getAll(name: string): string[]
}
See also
Properties
Property | Description |
---|---|
keys: string[]
|
Read-Only Names of the parameters in the map. |
Methods
has() | |||
---|---|---|---|
Reports whether the map contains a given parameter. | |||
has(name: string): booleanParameters
Returns
|
get() | |||
---|---|---|---|
Retrieves a single value for a parameter. | |||
get(name: string): string | nullParameters
Returns
|
getAll() | |||
---|---|---|---|
Retrieves multiple values for a parameter. | |||
getAll(name: string): string[]Parameters
Returns
|
© 2010–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v8.angular.io/api/router/ParamMap