I have a Settings page with two subsections: General Settings and Password Change — two separate <form> tags with the Submit button each. When I press Submit button on any of this form I do $scope.$broadcast('show-errors-check-validity'); to check all fields in this form... but other form is also showing errors. So, how to validate fields only for one form, not for all forms on a page?
I have a
Settings
page with two subsections:General Settings
andPassword Change
— two separate<form>
tags with theSubmit
button each. When I press Submit button on any of this form I do$scope.$broadcast('show-errors-check-validity');
to check all fields in this form... but other form is also showing errors. So, how to validate fields only for one form, not for all forms on a page?