NgControl

Stable Class

Class Overview

class NgControl {
  name : string
  valueAccessor : ControlValueAccessor
  validator : ValidatorFn
  asyncValidator : AsyncValidatorFn
  viewToModelUpdate(newValue: any) : void
}

Class Description

A base class that all control directive extend. It binds a FormControl object to a DOM element.

Used internally by Angular forms.

Class Details

name : string
valueAccessor : ControlValueAccessor
validator : ValidatorFn
asyncValidator : AsyncValidatorFn
viewToModelUpdate(newValue: any) : void

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

doc_Angular
2016-10-06 09:46:44
Comments
Leave a Comment

Please login to continue.