The AngularJS documentation gives an example for custom form validation using $asyncValidators. Their example displays a message when the validation is pending or has an error. I want to display a message when the form has validated successfully.
To the best of my understanding, the the form validation API docs indicate that $valid returns a boolean, just like $pending or $error, and the $q documentation indicates that resolve() should make the form return valid.
Here's a Plunker that doesn't work. Why doesn't the success message appear when the form is valid?