What Is a Form Group

What Is a Form Group

The FormGroup is a collection of Form controls It Tracks the value and validity state of a group of Form control instances. The FormGroup is one of the building blocks of the angular forms. The other two are FormControl and FormArray.

What is Form-Group name?

The FormGroupName is used to sync a nested FormGroup to a DOM element. Exported from: ReactiveFormsModule.

How do you use form groups?

To use a FormGroup , find the following steps. Step-1: Import ReactiveFormsModule from @angular/forms library in our application module and configure ReactiveFormsModule in imports metadata of @NgModule as following. ReactiveFormsModule enables using FormControl , FormGroup and FormArray in our application.

James H. Sterling
Author

James H. Sterling

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.