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

Function getUrlParamValue

modules/benchmarks/src/defer/init.ts:18–21  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

16const DEFAULT_ROWS_COUNT = '200';
17
18function getUrlParamValue(name: string): string | null {
19 const url = new URL(document.location.href);
20 return url.searchParams.get(name);
21}
22
23export function syncUrlParamsToForm(): {cols: string; rows: string} {
24 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…