MCPcopy Create free account
hub / github.com/angular/angular / set

Method set

packages/common/http/src/params.ts:261–263  ·  view source on GitHub ↗

* Replaces the value for a parameter. * @param param The parameter name. * @param value The new value. * @return A new body with the new value.

(param: string, value: string | number | boolean)

Source from the content-addressed store, hash-verified

259 * @return A new body with the new value.
260 */
261 set(param: string, value: string | number | boolean): HttpParams {
262 return this.clone({param, value, op: 's'});
263 }
264
265 /**
266 * Removes a given value or all values from a parameter.

Callers

nothing calls this directly

Calls 1

cloneMethod · 0.95

Tested by

no test coverage detected