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

Function setInputValue

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

Source from the content-addressed store, hash-verified

2206 }
2207
2208 const setInputValue = (value: number) => {
2209 input.value = value;
2210 dispatchEvent(input, 'input');
2211 fixture.detectChanges();
2212 };
2213 const verifyValidatorAttrValues = (values: {minlength: any; maxlength: any}) => {
2214 expect(input.getAttribute('minlength')).toBe(values.minlength);
2215 expect(input.getAttribute('maxlength')).toBe(values.maxlength);

Callers 1

Calls 2

dispatchEventFunction · 0.90
detectChangesMethod · 0.45

Tested by

no test coverage detected