interface
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 }
Only used by the ReactiveFormsModule
and FormsModule
.
addControl() | |||
---|---|---|---|
Add a control to this form. | |||
|
dir | NgControl | The control directive to add to the form. |
void
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. | |||
|
dir | AbstractFormGroupDirective |
void
removeFormGroup() | |||
---|---|---|---|
Remove a group of controls to this form. | |||
|
dir | AbstractFormGroupDirective |
void
getFormGroup() | |||
---|---|---|---|
The | |||
|
dir | AbstractFormGroupDirective |
updateModel() |
---|
Update the model for a particular control with a new value. |
© 2010–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v10.angular.io/api/forms/Form