MCPcopy Index your code
hub / github.com/angular/angular / getUrlParamValue

Function getUrlParamValue

modules/benchmarks/src/hydration/init.ts:19–22  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

17const DEFAULT_ROWS_COUNT = '200';
18
19function getUrlParamValue(name: string): string | null {
20 const url = new URL(document.location.href);
21 return url.searchParams.get(name);
22}
23
24export function syncUrlParamsToForm(): {cols: string; rows: string} {
25 let cols = getUrlParamValue('cols') ?? DEFAULT_COLS_COUNT;

Callers 1

syncUrlParamsToFormFunction · 0.70

Calls 1

getMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…