title: How to handle AngularJs with asp.net webform?
body: <p>I just implementing AngularJs on a website with is written in asp.net webforms.</p>
  
  <p>I figure out when <code>ng-Submit</code> on button, the form is also making Post call.</p>
  
  <p>How to stop <code>form</code> from <code>submitting</code> and let the <code>angular do its work</code>.</p>
  
  <p>My sample code is as below. </p>
  
  <pre><code>&lt;form id="form1" runat="server"&gt;
     &lt;div &gt;
       &lt;input type="text" data-ng-model="enteredName" ng-model-instant/&gt;
       &lt;button class="btn" value="add" data-ng-submit="addName()" &gt;Add&lt;/button&gt;
     &lt;/div&gt;
  &lt;/form&gt;
  
  
  //Add Name function
  $scope.addName = function () {
     $scope.names.push($scope.enteredName);
     $scope.enteredName = '';
  };
  </code></pre>
  
  <p><strong>Note</strong>: <code>The ng-submit controller is working fine it is adding the input to the string list but after that form makes post call. and page go to IsPostBack</code>.</p>
  
  <p>Anyone guide me to handle the form from not posting.</p>