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

Function asyncValidator

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

Source from the content-addressed store, hash-verified

256 // Add async validator that never resolves to keep pending state
257 let resolveValidator: () => void;
258 const asyncValidator = () =>
259 new Promise<null>((resolve) => {
260 resolveValidator = () => resolve(null);
261 });
262
263 act(() => {
264 fixture.componentInstance.model.control.addAsyncValidators(asyncValidator);

Callers

nothing calls this directly

Calls 1

resolveFunction · 0.50

Tested by

no test coverage detected