title: How do you disable the submit button after a single click to prevent multiple submissions in Angularjs?
body: <p>I've looked all over the web including several stack overflow examples for a solution to the question.  To be specific, I tried this:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var disableButton = function() {
    document.getElementById('&lt;%= btnSubmit.ClientID %&gt;').disabled = true;
  }
  
  $scope.isDisabled = false;
  var someFunc = function() {
    $scope.isDisabled = true;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;button OnClientClick="disableButton()" type="submit"&gt;Submit&lt;/button&gt;
  &lt;button ng-disabled="isDisabled" type="submit"&gt;Submit&lt;/button&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Neither worked as advertised. Any other suggestions? Please Angular suggestions only.  Thank you.</p>