Answers for "angular 10 set error on form controle"

1

angular 10 set error on form controle

formData.form.controls['email'].setErrors({'incorrect': true}); 
// or 
this.registerReactiveForm.get('phoneOrEmail').setErrors({'incorrect': true })
// or use markAsTouched method on form controle or markAs.... angular form controle methods
formData.form.controls['email'].markAsTouched();
Posted by: Guest on April-07-2021

Code answers related to "angular 10 set error on form controle"

Code answers related to "Javascript"

Browse Popular Code Answers by Language