Angular has a set of built in Validators, however you can create your own custom validator and extend your own functionality over a form control, like country based phone number validations, date format, etc.
List of built in Validators can be found here;
https://angular.io/api/forms/Validators
These are just the same validators used in template driven forms.
Like “required”, “email”, “min”, “max”, and so on.
And…
There are two types of Validator functions;
Sync Validators and
Async Validators
Source Code: https://github.com/codewithsrini/Angu...
Part 1: • Angular Reactive Form - Part 1 / 4 - ...
Part 2: • Angular Reactive Form - Part 2 / 4 - ...
Part 3: • Angular Reactive Form - Part 3 / 4 - ... (This lecture)
Part 4: • Angular Reactive Form - Part 4 / 4 - ...