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

Method validate

packages/forms/test/validators_spec.ts:40–46  ·  view source on GitHub ↗
(c: any)

Source from the content-addressed store, hash-verified

38 ) {}
39
40 validate(c: any): Observable<ValidationErrors> {
41 return new Observable((obs: any) => {
42 const error = this.expected !== c.value ? this.error : null;
43 obs.next(error);
44 obs.complete();
45 });
46 }
47 }
48
49 describe('Validators', () => {

Callers

nothing calls this directly

Calls 2

nextMethod · 0.45
completeMethod · 0.45

Tested by

no test coverage detected