CheckboxRequiredValidator
A Directive that adds the required
validator to checkbox controls marked with the
required
attribute, via the NG_VALIDATORS
binding.
NgModules
Selectors
input[type=checkbox][required][formControlName]
input[type=checkbox][required][formControl]
input[type=checkbox][required][ngModel]
Inherited from RequiredValidator
Description
Example
<input type="checkbox" name="active" ngModel required>
Methods
Parameters
Returns
|