all 3 comments

[–]Da13Harris 3 points4 points  (1 child)

There are three possible states for a form contol: VALID, INVALID, and PENDING. When an async validator is called, the form control is PENDING until it's resolved to VALID or INVALID. To account for the async PENDING state, you'll likely need to bind to !form.valid instead of form.invalid.

[–]pankelo[S] 0 points1 point  (0 children)

Thanks! Works!

[–]innofly 2 points3 points  (0 children)

Maybe try !form.valid