MCPcopy Create free account
hub / github.com/angular/components / validate

Method validate

src/material/checkbox/checkbox.ts:357–361  ·  view source on GitHub ↗
(control: AbstractControl<boolean>)

Source from the content-addressed store, hash-verified

355
356 // Implemented as a part of Validator.
357 validate(control: AbstractControl<boolean>): ValidationErrors | null {
358 return this.required && control.value !== true && !this._signalFormField
359 ? {'required': true}
360 : null;
361 }
362
363 // Implemented as a part of Validator.
364 registerOnValidatorChange(fn: () => void): void {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected