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 | null; override readonly value: any; override readonly valid: boolean | null; override readonly invalid: boolean | null; override readonly pending: boolean | null; override readonly disabled: boolean | null; override readonly enabled: boolean | null; override readonly errors: ValidationErrors | null; override readonly pristine: boolean | null; override readonly dirty: boolean | null; override readonly touched: boolean | null; override readonly status: string | null; override readonly untouched: boolean | null; override readonly statusChanges: Observable<any> | null; override readonly valueChanges: Observable<any> | null; override readonly validator: ValidatorFn | null; override readonly asyncValidator: AsyncValidatorFn | null; override reset(value?: any): void; override hasError(errorCode: string, path?: string | (string | number)[] | undefined): boolean; override getError(errorCode: string, path?: string | (string | number)[] | undefined): any;}