How to show error message in a form using FormGroup?

I’m using Angular FormBuilder in my app. The forms of my app needs to show error messages coming from custom validators functions.

The problem here is that I cannot find a way to show the errors from custom validatoes in my form.

How could I retrieve the errors from custom validators so that I can show them in the form?

This is documented here.

1 Like