Validates that the control value is strictly true
requiredTrue
Functionforms/validators
projects/forms/validators/required-true.validator.ts
Description#
Validates that the control value is strictly true.
Returns { requiredTrue: { actual } } for any value other than true.
Intended for checkbox agreement fields.
Signature#
requiredTrue()Returns#
ValidatorFn