Is there a way to put a condition inside an ng-click? Here, I want that the form is not submitted if there are any form errors, but then I got a parse exception.
Template:
Controller:
$scope.check = function(value) { if (value) { updateMyProfile(); } }