Top "Angular-validation" questions

Angular 2+ validation patterns, syntax and properties.

How to Add a Validator dynamically to a FormControl in Angular 2

I am using ReactiveFormsModule and have defined all my form controls including simple validators such as Validators.required within a …

validation angular angular2-forms angular-validation
Pre-populating and validating date in Angular 6 reactive form

All the rest of the fields are getting pre-populated except date for me. For testing purposes, i have hard coded …

angular6 angular-validation
How to show error messages for min and max values of an input field with number type?

How do I set/show error messages for min and max values that I set on an input field with …

angularjs angular-validation
Angular form validation: compare two fields

In an Angular 4 application, how can I validate two fields of a form doing a comparison? For example, let's suppose …

forms angular validation angular-forms angular-validation
FormControl boolean without default value in angular 2

I'm using reactive forms in angular 2 (4.1.2) I have a boolean property which I don't want to have a default value …

javascript angular angular-reactive-forms angular-validation
minLength and maxLength validators not working in Angular7 Reactive Form

I am trying to use Validators.minLength and Validators.maxLength in Angular7 using a Reactive Form but get the following …

angular angular-reactive-forms angular-validation
Async Validator Throw Expected validator to return Promise or Observable

I have tried to confirm the password with password value. I have done as per Async validator standard. But I …

angular angular2-forms angular-reactive-forms angular-validation
Angular 5 solely validation on blur?

I wonder if it is possible to have the validation in reactive forms on blur. At the moment you can …

javascript angular angular5 angular-validation
Angular 7 - Validate input field only if checkbox is checked

I'm using angular 7 and I have a form with two input fields, while the first one is always required, the …

angular angular-validation
Angular 4: reactive form control is stuck in pending state with a custom async validator

I am building an Angular 4 app that requires the BriteVerify email validation on form fields in several components. I am …

javascript angular angular-reactive-forms angular-validation