• Overview
@angular/forms

Form

interface

An interface implemented by FormGroupDirective and NgForm directives.

  
    interface Form {}
  
  

addControl

void

Add a control to this form.

@paramdirNgControl

The control directive to add to the form.

@returnsvoid

removeControl

void

Remove a control from this form.

@paramdirNgControl

: The control directive to remove from the form.

@returnsvoid

getControl

The control directive from which to get the FormControl.

@paramdirNgControl

: The control directive.

@returnsFormControl<any>

addFormGroup

void

Add a group of controls to this form.

@paramdirAbstractFormGroupDirective

: The control group directive to add.

@returnsvoid

removeFormGroup

void

Remove a group of controls to this form.

@paramdirAbstractFormGroupDirective

: The control group directive to remove.

@returnsvoid

getFormGroup

The FormGroup associated with a particular AbstractFormGroupDirective.

@paramdirAbstractFormGroupDirective

: The form group directive from which to get the FormGroup.

@returnsFormGroup<any>

updateModel

void

Update the model for a particular control with a new value.

@paramdirNgControl

: The control directive to update.

@paramvalueany

: The new value for the control.

@returnsvoid
Jump to details