Can a condition be included within an ng-click directive? I am attempting to prevent form submission if there are any errors present in the form, but I encountered a parse exception.
<input ng-click="{{if(profileForm.$valid) updateMyProfile()}}" name="submit" id="submit" value="Save" class="submit" type="submit">
I experimented with using ng-disabled instead, but this caused my validation plugin to malfunction as the form was never submitted, thus not triggering the validation process.