CheckboxControlValueAccessor

Stable

Directive

Class Overview

class CheckboxControlValueAccessor implements ControlValueAccessor {
constructor(_renderer: Renderer, _elementRef: ElementRef)

onChange : (_: any) => {}
onTouched : () => {}
writeValue(value: any) : void
registerOnChange(fn: (_: any) => {}) : void
registerOnTouched(fn: () => {}) : void
setDisabledState(isDisabled: boolean) : void

}

Selectors

input[type=checkbox][formControlName]

input[type=checkbox][formControl]

input[type=checkbox][ngModel]

Class Description

Constructor

constructor(_renderer: Renderer, _elementRef: ElementRef)

Class Details

exported from @angular/forms/index, defined in @angular/forms/src/directives/checkbox_value_accessor.ts