0
Just enter "," and add new validators to the array. See the example:
password: new FormControl('', [Validatots.required, Validators.minLength(5), Validators.maxLength(10)]),
And so it goes..
Edit Using updateOn
new FormControl(null, {validators: Validators.compose([Validators.required, Validators.min(2500)]), updateOn: "blur"}),
And updateOn, would also enter the array?
– adventistaam
That! in the update action also however you need to pass the value to be validated as the first argument of
FormControl
. I suggest you create a form-only method that accepts the default values of the fields as argument. In documentation has several well-chewed examples of how to validate the fields.– Vinicius.Silva
How it would look in the ['updateOn' array: 'Blur'] in the array?
– adventistaam
@adventistaam updated the response with an example of using multiple validators and
updateOn
– Vinicius.Silva