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

Function setInputValue

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

Source from the content-addressed store, hash-verified

2088 }
2089
2090 const setInputValue = async (value: number) => {
2091 input.value = value;
2092 dispatchEvent(input, 'input');
2093 await fixture.whenStable();
2094 };
2095 const verifyValidatorAttrValues = (values: {minlength: any; maxlength: any}) => {
2096 expect(input.getAttribute('minlength')).toBe(values.minlength);
2097 expect(input.getAttribute('maxlength')).toBe(values.maxlength);

Callers 1

Calls 2

dispatchEventFunction · 0.90
whenStableMethod · 0.65

Tested by

no test coverage detected