Class Overview
class CheckboxRequiredValidator extends RequiredValidator {
validate
(c: AbstractControl) : ValidationErrors|
}
Selectors
input[type=checkbox][required][formControlName]
input[type=checkbox][required][formControl]
input[type=checkbox][required][ngModel]
Class Description
A Directive that adds the required
validator to checkbox controls marked with the
required
attribute, via the NG_VALIDATORS
binding.
Example
exported from forms/index, defined in forms/src/directives/validators.ts