directive
A Directive that adds the required validator to checkbox controls marked with the required attribute. The directive is provided with the NG_VALIDATORS multi-provider list.
input[type=checkbox][required][formControlName]input[type=checkbox][required][formControl]input[type=checkbox][required][ngModel]RequiredValidator
The following example shows how to add a checkbox required validator to an input attached to an ngModel binding.
<input type="checkbox" name="active" ngModel required>
© 2010–2021 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v11.angular.io/api/forms/CheckboxRequiredValidator