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

Function asyncValidator

packages/forms/signals/test/web/reactive_fvc.spec.ts:234–237  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

232 // Add async validator that never resolves to keep pending state
233 let resolveValidator: () => void;
234 const asyncValidator = () =>
235 new Promise<null>((resolve) => {
236 resolveValidator = () => resolve(null);
237 });
238
239 act(() => {
240 fixture.componentInstance.ctrl.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…