educative.io

Educative

Can formControl be referred as Controllers?

In the course formControl is referred as controller. Is that correct ? Even if that is correct, there should be an indication that you are calling formControl as controller.

Hi @Sourabh_Mishra,

formControl is the class. We use the import statement of the @angular/forms package to include the FormControl class and these controls are added as key-value pairs in the object passed into the constructor function of the FormGroup class. For every input in our form, we should add a new instance to the object.

You can check out this lesson: Form Groups and Controls - Angular: Designing and Architecting Web Applications