@angular/formscode
Form
interface
stable
An interface implemented by FormGroupDirective and NgForm directives.
On this page
API
interface Form { addControl(dir: NgControl): void; removeControl(dir: NgControl): void; getControl(dir: NgControl): FormControl<any>; addFormGroup(dir: AbstractFormGroupDirective): void; removeFormGroup(dir: AbstractFormGroupDirective): void; getFormGroup(dir: AbstractFormGroupDirective): FormGroup<any>; updateModel(dir: NgControl, value: any): void;}
getControl
FormControl<any>The control directive from which to get the FormControl.
@returns
FormControl<any>getFormGroup
FormGroup<any>The FormGroup associated with a particular AbstractFormGroupDirective.
@returns
FormGroup<any>updateModel
voidUpdate the model for a particular control with a new value.
@paramvalue
any: The new value for the control.
@returns
voidDescription
An interface implemented by FormGroupDirective and NgForm directives.
Only used by the ReactiveFormsModule and FormsModule.
Jump to details