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

Function uniqLoginAsyncValidator

packages/forms/test/reactive_integration_spec.ts:6352–6354  ·  view source on GitHub ↗
(expectedValue: string, timeout: number = 0)

Source from the content-addressed store, hash-verified

6350}
6351
6352function uniqLoginAsyncValidator(expectedValue: string, timeout: number = 0) {
6353 return asyncValidator((c) => c.value === expectedValue, timeout, {'uniqLogin': true});
6354}
6355
6356function observableValidator(resultArr: number[]): AsyncValidatorFn {
6357 return (c: AbstractControl) => {

Callers 2

validateMethod · 0.85

Calls 1

asyncValidatorFunction · 0.70

Tested by

no test coverage detected