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

Function uniqLoginAsyncValidator

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

Source from the content-addressed store, hash-verified

6311}
6312
6313function uniqLoginAsyncValidator(expectedValue: string, timeout: number = 0) {
6314 return asyncValidator((c) => c.value === expectedValue, timeout, {'uniqLogin': true});
6315}
6316
6317function observableValidator(resultArr: number[]): AsyncValidatorFn {
6318 return (c: AbstractControl) => {

Callers 2

validateMethod · 0.85

Calls 1

asyncValidatorFunction · 0.70

Tested by

no test coverage detected