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

Function syncUrlParamsToForm

modules/benchmarks/src/defer/init.ts:23–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21}
22
23export function syncUrlParamsToForm(): {cols: string; rows: string} {
24 let cols = getUrlParamValue('cols') ?? DEFAULT_COLS_COUNT;
25 let rows = getUrlParamValue('rows') ?? DEFAULT_ROWS_COUNT;
26 (document.getElementById('cols') as HTMLInputElement).value = cols;
27 (document.getElementById('rows') as HTMLInputElement).value = rows;
28 return {cols, rows};
29}
30
31export function init(appRef: ApplicationRef) {
32 const table = appRef.components[0].instance;

Callers 2

main.tsFile · 0.90
main.tsFile · 0.90

Calls 1

getUrlParamValueFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…