Form
An interface implemented by FormGroupDirective
and NgForm
directives.
interface Form {
addControl(dir: NgControl): void
removeControl(dir: NgControl): void
getControl(dir: NgControl): FormControl
addFormGroup(dir: AbstractFormGroupDirective): void
removeFormGroup(dir: AbstractFormGroupDirective): void
getFormGroup(dir: AbstractFormGroupDirective): FormGroup
updateModel(dir: NgControl, value: any): void
}
Class implementations
Description
Only used by the ReactiveFormsModule
and FormsModule
.
Methods
Add a control to this form. |
||
Parameters
Returns
|
Remove a control from this form. |
||
Parameters
Returns
|
The control directive from which to get the |
||
Parameters
Returns |
Add a group of controls to this form. |
||
Parameters
Returns
|
Remove a group of controls to this form. |
||
Parameters
Returns
|
The |
||
Parameters
Returns |
Update the model for a particular control with a new value. |
||||
Parameters
Returns
|