Creates a top-level FormGroup instance and binds it to a form to track aggregate form value and validation status.
FormGroup
class NgForm extends ControlContainer implements Form ,AfterViewInit { readonly submitted: boolean; form: FormGroup<any>; @Output() ngSubmit: EventEmitter<any>; @Input('ngFormOptions') options: { updateOn?: FormHooks | undefined; }; readonly formDirective: Form; readonly control: FormGroup<any>; readonly path: string[]; readonly controls: { [key: string]: AbstractControl<any, any>; }; addControl(dir: NgModel): void; getControl(dir: NgModel): FormControl<any>; removeControl(dir: NgModel): void; addFormGroup(dir: NgModelGroup): void; removeFormGroup(dir: NgModelGroup): void; getFormGroup(dir: NgModelGroup): FormGroup<any>; updateModel(dir: NgControl, value: any): void; setValue(value: { [key: string]: 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;}