The accessor for writing a value and listening to changes on a checkbox input element.

Example

<input type="checkbox" ngControl="rememberLogin">
Implements
  • ControlValueAccessor
Annotations
  • Directive(selector: "input[type=checkbox][ngControl],input[type=checkbox][ngFormControl],input[type=checkbox][ngModel]", host: const {"(change)" : "onChange(\$event.target.checked)", "(blur)" : "onTouched()"}, providers: const [CHECKBOX_VALUE_ACCESSOR])

Constructors

CheckboxControlValueAccessor(Renderer _renderer, ElementRef _elementRef)

Properties

hashCode → int

Get a hash code for this object.

read-only, inherited
onChange → dynamic

read / write
onTouched → dynamic

read / write
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
registerOnChange(fn) → void

Set the function to be called when the control receives a change event.

registerOnTouched(fn) → void

Set the function to be called when the control receives a touch event.

toString() → String

Returns a string representation of this object.

inherited
writeValue(value) → void

Write a new value to the element.