export directive DefaultValueAccessor
export directive DefaultValueAccessor
exported from angular2/common defined in angular2/src/common/forms/directives/default_value_accessor.ts (line 6)
The default accessor for writing a value and listening to changes that is used by the
NgModel
, NgFormControl
, and NgControlName
directives.
Example
Selectors
input:not([type=checkbox])[ngControl]
textarea[ngControl]
input:not([type=checkbox])[ngFormControl]
textarea[ngFormControl]
input:not([type=checkbox])[ngModel]
textarea[ngModel]
[ngDefaultControl]
Constructor
constructor(_renderer: Renderer, _elementRef: ElementRef)
constructor(_renderer: Renderer, _elementRef: ElementRef)
Not Yet Documented
Members
onChange : (_) => {}
onChange : (_) => {}
Not Yet Documented
onTouched : () => {}
onTouched : () => {}
Not Yet Documented
writeValue(value: any) : void
writeValue(value: any) : void
Not Yet Documented
registerOnChange(fn: (_: any) => void) : void
registerOnChange(fn: (_: any) => void) : void
Not Yet Documented
registerOnTouched(fn: () => void) : void
registerOnTouched(fn: () => void) : void
Not Yet Documented