MCPcopy Index your code
hub / github.com/angular/angular / registerOnValidatorChange

Function registerOnValidatorChange

packages/forms/src/directives/shared.ts:149–154  ·  view source on GitHub ↗
(validators: (V | Validator)[], onChange: () => void)

Source from the content-addressed store, hash-verified

147}
148
149function registerOnValidatorChange<V>(validators: (V | Validator)[], onChange: () => void): void {
150 validators.forEach((validator: V | Validator) => {
151 if ((<Validator>validator).registerOnValidatorChange)
152 (<Validator>validator).registerOnValidatorChange!(onChange);
153 });
154}
155
156/**
157 * Sets up disabled change handler function on a given form control if ControlValueAccessor

Callers 2

setUpValidatorsFunction · 0.70
cleanUpValidatorsFunction · 0.70

Calls 1

forEachMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…