CheckboxControlValueAccessor
A ControlValueAccessor
for writing a value and listening to changes on a checkbox input
element.
Exported from
Selectors
input[type=checkbox][formControlName]
input[type=checkbox][formControl]
input[type=checkbox][ngModel]
Description
Using a checkbox with a reactive form.
The following example shows how to use a checkbox with a reactive form.
const rememberLoginControl = new FormControl();
<input type="checkbox" [formControl]="rememberLoginControl">