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

Function asyncValidator

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

Source from the content-addressed store, hash-verified

278 // Add async validator that never resolves to keep pending state
279 let resolveValidator: () => void;
280 const asyncValidator = () =>
281 new Promise<null>((resolve) => {
282 resolveValidator = () => resolve(null);
283 });
284
285 act(() => {
286 fixture.componentInstance.ctrl.addAsyncValidators(asyncValidator);

Callers

nothing calls this directly

Calls 1

resolveFunction · 0.50

Tested by

no test coverage detected