Form Control Group in Template Driven Form | Angular Forms | Angular 13+

Описание к видео Form Control Group in Template Driven Form | Angular Forms | Angular 13+

In this lecture you will learn what is form control group and how to group some of the form controls together into a single control. We use form group to group form controls together.

To group form controls we use ngModelGroup directive on the container element of form control and specify a name for that. Behind the scenes, a FormGroup object is created for that container and in that object the form controls are created as its properties.

The advantage of using a form group is that, we can do form validation for the control group together instead of doing validation on indivisual form elements.

DOWNLOAD SOURCE CODE FOR THIS SECTION HERE: https://drive.google.com/file/d/1g0FB...

Комментарии

Информация по комментариям в разработке