Constructors
constructor
- new HttpParams(
source?:
| null
| string
| {
[param: string]: | string
| number
| boolean
| readonly (string | number | boolean)[];
},
options?: { encoder?: HttpParameterCodec },
): HttpParams Parameters
Optional
source:
| null
| string
| {
[param: string]: | string
| number
| boolean
| readonly (string | number | boolean)[];
}Optional
options: { encoder?: HttpParameterCodec }
Methods
append
- append(param: string, value: string | number | boolean): HttpParams
Parameters
- param: string
- value: string | number | boolean
appendAll
- appendAll(
params: {
[param: string]:
| string
| number
| boolean
| readonly (string | number | boolean)[];
},
): HttpParams Parameters
- params: {
[param: string]:
| string
| number
| boolean
| readonly (string | number | boolean)[];
}
delete
- delete(param: string, value?: string | number | boolean): HttpParams
Parameters
- param: string
Optional
value: string | number | boolean
get
- get(param: string): null | string
Returns null | string
getAll
- getAll(param: string): null | string[]
Returns null | string[]
has
- has(param: string): boolean
Returns boolean
keys
- keys(): string[]
Returns string[]
set
- set(
param: string,
value: string | number | boolean | readonly (string | number | boolean)[],
): HttpParams Parameters
- param: string
- value: string | number | boolean | readonly (string | number | boolean)[]
toString
- toString(): string
Returns string