You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 1, 2020. It is now read-only.
at this point is this supported? <form name="forms.myform">
because I cannot find a way (without using controllerAs, which I do not want to) to validate a form on submit.
I've written some code which continue the submit only if the forms.myform.$valid==true, pretty straightforward, and it works.
But, if it fails (it is $invalid), I just scroll the page to the first $invalid field (it works).
What I want is also showing the validation error.
But, it does not allow me to trigger checkFormValidity without having $validationSummary into the form.
new ValidationService().checkFormValidity($scope.forms.myform)
this fails because it cannot find $validationSummary into the form
(for the record, it does create the $validationSummary in the $scope, but not in $scope.forms.myform)
My only option right now is to show the errors since the start preValidateFormElements: true or stop the submit without feedback to the user.
Also the $scope.$broadcast('angularValidation.revalidate', 'email'); (on a <input name="email" validate="required|email" ng-model="item.email">) does not show the "require error message" under the field, it appears only if I put the focus manually and then blur manually. (I've tried also to do it with .blur() but it does not trigger the validation).