title: if statement in ng-click
body: <p>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.</p>
  
  <pre><code> &lt;input  ng-click="{{if(profileForm.$valid) updateMyProfile()}}" name="submit" id="submit" value="Save" class="submit" type="submit"&gt;
  </code></pre>
  
  <p>I tried to use ng-disabled but then my validation plugin does not work cause form is never submitted at all, so it is not triggered.</p>