Form
interfacestablecodeAn interface implemented by FormGroupDirective and NgForm directives.
API
interface Form {}
addControl
voidAdd a control to this form.
@paramdirNgControlThe control directive to add to the form.
@returnsvoidremoveControl
voidRemove a control from this form.
@paramdirNgControl: The control directive to remove from the form.
@returnsvoidgetControl
FormControl<any>The control directive from which to get the FormControl.
NgControl: The control directive.
@returnsFormControl<any>addFormGroup
voidAdd a group of controls to this form.
@paramdirAbstractFormGroupDirective: The control group directive to add.
@returnsvoidremoveFormGroup
voidRemove a group of controls to this form.
@paramdirAbstractFormGroupDirective: The control group directive to remove.
@returnsvoidgetFormGroup
FormGroup<any>The FormGroup associated with a particular AbstractFormGroupDirective.
AbstractFormGroupDirective: The form group directive from which to get the FormGroup.
FormGroup<any>updateModel
voidUpdate the model for a particular control with a new value.
@paramdirNgControl: The control directive to update.
@paramvalueany: The new value for the control.
@returnsvoidDescription
An interface implemented by FormGroupDirective and NgForm directives.
Only used by the ReactiveFormsModule and FormsModule.