I have an Angular form. The fields are validated using the ng-pattern
attribute. I also have a reset button. I\'m using the Ui.Utils Event Binder to handle the
Following worked for me
let form = this.$scope.myForm;
let controlNames = Object.keys(form).filter(key => key.indexOf('$') !== 0);
for (let name of controlNames) {
let control = form [name];
control.$error = {};
}
In Short: to get rid of ng-messages errors you need to clear out the $error object for each form item.