Binds an existing FormGroup or FormRecord to a DOM element.
FormGroup
FormRecord
class FormGroupDirective extends ControlContainer implements Form ,OnChanges ,OnDestroy { readonly submitted: boolean; directives: FormControlName[]; @Input('formGroup') form: FormGroup<any>; @Output() ngSubmit: EventEmitter<any>; readonly formDirective: Form; readonly control: FormGroup<any>; readonly path: string[]; addControl(dir: FormControlName): FormControl<any>; getControl(dir: FormControlName): FormControl<any>; removeControl(dir: FormControlName): void; addFormGroup(dir: FormGroupName): void; removeFormGroup(dir: FormGroupName): void; getFormGroup(dir: FormGroupName): FormGroup<any>; addFormArray(dir: FormArrayName): void; removeFormArray(dir: FormArrayName): void; getFormArray(dir: FormArrayName): FormArray<any>; updateModel(dir: FormControlName, value: any): void; onSubmit($event: Event): boolean; onReset(): void; resetForm(value?: any): void; override name: string | number; override readonly value: any; override readonly valid: boolean; override readonly invalid: boolean; override readonly pending: boolean; override readonly disabled: boolean; override readonly enabled: boolean; override readonly errors: ValidationErrors; override readonly pristine: boolean; override readonly dirty: boolean; override readonly touched: boolean; override readonly status: string; override readonly untouched: boolean; override readonly statusChanges: Observable<any>; override readonly valueChanges: Observable<any>; override readonly validator: ValidatorFn; override readonly asyncValidator: AsyncValidatorFn; override reset(value?: any): void; override hasError(errorCode: string, path?: string | (string | number)[]): boolean; override getError(errorCode: string, path?: string | (string | number)[]): any;}