FormControl in Angular
This Article helps you to Understand, FormControl in Angular
Building Blocks of Angular Forms
Whether you use a template-driven or reactive forms strategy, the Angular Forms module has three building components.
FormControl, FormGroup and FormArray
FormControl
A
FormControl represents a single input field in an Angular form.The
FormControl is an object that contains all of this data about a single
input element. It monitors each of these controls' value and validation
status.
Simply put, the FormControl is a class. Each form field receives its own FormControl class.We can make references to them in our component class and look at their properties and methods.
FormControl can be used to set the value of a form field, determine its condition (valid/invalid, spotless/dirty, touched/untouched, etc.), and add validation rules to it.
One form input field is represented by a FormControl. It is an Angular form's smallest unit.FormControls include the value of the field as well as states like dirty (changed) or with errors.
Use FormControl in Template