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
addControl() |
---|
Add a control to this form. |
removeControl() |
---|
Remove a control from this form. |
getControl() |
---|
The control directive from which to get the |
addFormGroup() | |||
---|---|---|---|
Add a group of controls to this form. |
|||
Parameters
Returns
|
removeFormGroup() | |||
---|---|---|---|
Remove a group of controls to this form. |
|||
Parameters
Returns
|
getFormGroup() | |||
---|---|---|---|
The |
|||
Parameters
Returns |
updateModel() |
---|
Update the model for a particular control with a new value. |