MCPcopy
hub / github.com/angular/angular / setInputValue

Function setInputValue

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 2

dispatchEventFunction · 0.90
detectChangesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…