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 | The control directive to add to the form. |
Returns
void
| removeControl() | ||
|---|---|---|
| Remove a control from this form. | ||
|
| dir | Type: |
Returns
void
| getControl() | ||
|---|---|---|
| The control directive from which to get the | ||
|
| dir | Type: |
Returns
| addFormGroup() | ||
|---|---|---|
| Add a group of controls to this form. | ||
|
| dir | Type: |
Returns
void
| removeFormGroup() | ||
|---|---|---|
| Remove a group of controls to this form. | ||
|
| dir | Type: |
Returns
void
| getFormGroup() | ||
|---|---|---|
| The | ||
|
| dir | Type: |
Returns
| updateModel() | ||||
|---|---|---|---|---|
| Update the model for a particular control with a new value. | ||||
|
| dir | Type: |
| value | Type: |
Returns
void
© 2010–2019 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v6.angular.io/api/forms/Form