When a custom validator returns a promise, uiValidation directive adds the validation key to ModelController's $pending object.
When promise is resolve or rejected. $pending[key] is deleted automatically.
This allow to use $pending variable from the view to show transient messages while validation is taking place.
When a custom validator returns a promise, uiValidation directive adds the validation key to ModelController's $pending object. When promise is resolve or rejected. $pending[key] is deleted automatically.
This allow to use $pending variable from the view to show transient messages while validation is taking place.