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 { constructor(validators: (ValidatorFn | Validator)[], asyncValidators: (AsyncValidatorFn | AsyncValidator)[], callSetDisabledState?: SetDisabledStateOption | undefined): NgForm; 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, 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 |