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

Function syncUrlParamsToForm

modules/benchmarks/src/hydration/init.ts:24–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22}
23
24export function syncUrlParamsToForm(): {cols: string; rows: string} {
25 let cols = getUrlParamValue('cols') ?? DEFAULT_COLS_COUNT;
26 let rows = getUrlParamValue('rows') ?? DEFAULT_ROWS_COUNT;
27 (document.getElementById('cols') as HTMLInputElement).value = cols;
28 (document.getElementById('rows') as HTMLInputElement).value = rows;
29 return {cols, rows};
30}
31
32export function init(appRef: ApplicationRef, insertSsrContent = true) {
33 let tableComponentRef: ComponentRef<TableComponent>;

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…