concept group in category angular

appears as: group
Angular Development with Typescript, Second Edition

This is an excerpt from Manning's book Angular Development with Typescript, Second Edition.

An Angular module is a container for a group of related components, services, directives, and pipes. You can think of a module as a package that implements certain functionality from the business domain of your application, such as a shipping or billing module. All elements of a small application can be located in one module (the root module), whereas larger apps may have more than one module (feature modules). All apps must have at least a root module that’s bootstrapped during app launch.

Now that you know how to create a custom validator for a single form control, let’s consider another scenario: validating a group of form controls.

11.4. Validating a group of controls

You can validate a group of form controls by attaching validator functions to a FormGroup instead of an individual FormControl. The following listing creates an equalValidator that ensures that the password and password confirmation fields on the sample user registration form have the same value.