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