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

Function requiredTrueValidator

packages/forms/src/validators.ts:511–513  ·  view source on GitHub ↗
(control: AbstractControl)

Source from the content-addressed store, hash-verified

509 * See `Validators.requiredTrue` for additional information.
510 */
511export function requiredTrueValidator(control: AbstractControl): ValidationErrors | null {
512 return control.value === true ? null : {'required': true};
513}
514
515/**
516 * Validator that requires the control's value pass an email validation test.

Callers 1

requiredTrueMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…