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
ng-pattern
You can pass your loginForm object into the function ng-click="userCtrl.login(loginForm) and in the function call
ng-click="userCtrl.login(loginForm)
this.login = function (loginForm){ loginForm.$setPristine(); loginForm.$setUntouched(); }