title: prevent default on submit :- Angularjs
body: <p>I want to prevent-default action of http-post to '/signUp' if e-mail is null upon filling form.</p>
  
  <p>Controller Code:-</p>
  
  <pre><code>$scope.signUp = function() {
  
    if($scope.email = null);
      preventdefault;
  
  }
  </code></pre>
  
  <p>html (jade) :-</p>
  
  <pre><code>form(name="input", action="/signUp", method="post")
    input(type="submit", value="submit")
  </code></pre>