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

Function validator

packages/forms/test/validators_spec.ts:26–32  ·  view source on GitHub ↗
(key: string, error: any)

Source from the content-addressed store, hash-verified

24
25(function () {
26 function validator(key: string, error: any): ValidatorFn {
27 return (c: AbstractControl) => {
28 const r: ValidationErrors = {};
29 r[key] = error;
30 return r;
31 };
32 }
33
34 class AsyncValidatorDirective implements AsyncValidator {
35 constructor(

Callers 4

validators_spec.tsFile · 0.70
createHoverTriggerFunction · 0.50
createInteractionTriggerFunction · 0.50
createViewportTriggerFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…