Form

export interface Form

exported from angular2/common defined in angular2/src/common/forms/directives/form_interface.ts (line 3)

An interface that NgFormModel and NgForm implement.

Only used by the forms module.

Members

addControl(dir: NgControl) : void

Add a control to this form.

removeControl(dir: NgControl) : void

Remove a control from this form.

getControl(dir: NgControl) : Control

Look up the Control associated with a particular NgControl.

addControlGroup(dir: NgControlGroup) : void

Add a group of controls to this form.

removeControlGroup(dir: NgControlGroup) : void

Remove a group of controls from this form.

getControlGroup(dir: NgControlGroup) : ControlGroup

Look up the ControlGroup associated with a particular NgControlGroup.

updateModel(dir: NgControl, value: any) : void

Update the model for a particular control with a new value.