CheckboxControlValueAccessor
directive
The accessor for writing a value and listening to changes on a checkbox input element.
NgModules
Selectors
input[type=checkbox][formControlName]input[type=checkbox][formControl]input[type=checkbox][ngModel]
Properties
| Property | Description | 
|---|---|
  onChange: (_: any) => { }  |  |
  onTouched: () => { }  |  
Description
Example
<input type="checkbox" name="rememberLogin" ngModel>
Methods
|     writeValue()      | ||
|---|---|---|
   |  
| value |   Type:   |  
Returns
void
|     registerOnChange()      | ||
|---|---|---|
   |  
| fn |   Type:   |  
Returns
void
|     registerOnTouched()      | ||
|---|---|---|
   |  
| fn |   Type:   |  
Returns
void
|     setDisabledState()      | ||
|---|---|---|
   |  
| isDisabled |   Type:   |  
Returns
void
    © 2010–2019 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
    https://v6.angular.io/api/forms/CheckboxControlValueAccessor