ControlValueAccessor

export interface ControlValueAccessor

exported from angular2/common defined in angular2/src/common/forms/directives/control_value_accessor.ts (line 2)

A bridge between a control and a native element.

A ControlValueAccessor abstracts the operations of writing a new value to a DOM element representing an input control.

Please see DefaultValueAccessor for more information.

Members

writeValue(obj: any) : void

Write a new value to the element.

registerOnChange(fn: any) : void

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

registerOnTouched(fn: any) : void

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