title: angularjs how can i bind textbox values on button click
body: <p>Please help me how can I bind these ng-model(a,b) values during button click event</p>
  
  <pre><code>    &lt;input type="text"  ng-model="a"/&gt;&lt;b&gt;Enter A Value&lt;/b&gt;
      &lt;input type="text" ng-model="b" /&gt;&lt;b&gt;Enter b Value&lt;/b&gt;
      &lt;button ng-click="Addition()"&gt;add&lt;/button&gt;
  </code></pre>
  
  <p><strong>Angular.js</strong></p>
  
  <pre><code>$scope.Addition = function () {
          $scope.a = 10;
          $scope.b = 20;
  
          $state.go('Add', {
              a: $scope.a,
              b: $scope.b
          }
  }
  </code></pre>
  
  <p>Here when i click on button a=10 b=20 values moves but not what I entered</p>