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; }; 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; 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;}