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

Function asyncValidator

packages/forms/signals/test/web/template_fvc.spec.ts:208–211  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

206 // Add async validator that never resolves to keep pending state
207 let resolveValidator: () => void;
208 const asyncValidator = () =>
209 new Promise<null>((resolve) => {
210 resolveValidator = () => resolve(null);
211 });
212
213 act(() => {
214 fixture.componentInstance.model.control.addAsyncValidators(asyncValidator);

Callers

nothing calls this directly

Calls 1

resolveFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…