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

Function setInputValue

packages/forms/test/template_integration_spec.ts:2085–2089  ·  view source on GitHub ↗
(value: number)

Source from the content-addressed store, hash-verified

2083 }
2084
2085 const setInputValue = async (value: number) => {
2086 input.value = value;
2087 dispatchEvent(input, 'input');
2088 await fixture.whenStable();
2089 };
2090 const verifyValidatorAttrValues = (values: {minlength: any; maxlength: any}) => {
2091 expect(input.getAttribute('minlength')).toBe(values.minlength);
2092 expect(input.getAttribute('maxlength')).toBe(values.maxlength);

Callers 1

Calls 2

dispatchEventFunction · 0.90
whenStableMethod · 0.65

Tested by

no test coverage detected