MCPcopy
hub / github.com/angular/angular / CustomValidatorDirective

Class CustomValidatorDirective

packages/forms/test/directives_spec.ts:56–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56class CustomValidatorDirective implements Validator {
57 validate(c: FormControl): ValidationErrors {
58 return {'custom': true};
59 }
60}
61
62describe('Form Directives', () => {
63 let defaultAccessor: DefaultValueAccessor;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…