How to add async validation without adding any other validators?
问题 I am using angular 7, reactive form. I have a requirement to check the existence of particular value on the server to make field valid/invalid. Component Class: Control: valueControl = new FormControl("" ,Validators.required, ), [this.valueIsUnique.bind(this)]); /** * Validator to checking existance/uniqueness * of entered value * @param control */ valueIsUnique(control: AbstractControl): Promise<ValidationErrors|null> | null { if (control && (control.value !== null && control.value !==