Using FormBuilder, I instantiate a FormArray for an array of email fields. I assign it a set of Validators, which includes a custom Validator, and Angular's built-in Validators.email.
this.formBuilder.array(
[this.formBuilder.control('')],
Validators.compose([customValidator, Validators.email])
)
Assigning the Validators in this way means that the FormArray is passed as the control parameter to the Validators. My custom validator can be tuned to expect a FormArray, but Validators.email expects a FormControl with a single value.
How do I use Angular built-in Validators with a FormArray?