export interface 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
addControl(dir: NgControl) : void
Add a control to this form.
removeControl(dir: NgControl) : void
removeControl(dir: NgControl) : void
Remove a control from this form.
addControlGroup(dir: NgControlGroup) : void
addControlGroup(dir: NgControlGroup) : void
Add a group of controls to this form.
removeControlGroup(dir: NgControlGroup) : void
removeControlGroup(dir: NgControlGroup) : void
Remove a group of controls from this form.
getControlGroup(dir: NgControlGroup) : ControlGroup
getControlGroup(dir: NgControlGroup) : ControlGroup
Look up the ControlGroup
associated with a particular NgControlGroup
.
updateModel(dir: NgControl, value: any) : void
updateModel(dir: NgControl, value: any) : void
Update the model for a particular control with a new value.