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

Function setInputValue

packages/forms/signals/test/web/number_input.spec.ts:462–467  ·  view source on GitHub ↗
(input: HTMLInputElement, value: string)

Source from the content-addressed store, hash-verified

460});
461
462function setInputValue(input: HTMLInputElement, value: string) {
463 act(() => {
464 input.value = value;
465 input.dispatchEvent(new Event('input'));
466 });
467}
468
469function act<T>(fn: () => T): T {
470 try {

Callers 1

Calls 2

actFunction · 0.70
dispatchEventMethod · 0.45

Tested by

no test coverage detected