title: Input cursor position jumps to end with ng-change()
body: <p>I have an instance where I'm replacing the value of <code>ngModel</code> through <code>ngChange</code>. The cursor jumps to the end of the <code>input</code> field after each change (assuming because I'm assigning the result to the same <code>$scope</code> variable.)<br />
  I'd like to know how I can prevent this behavior?</p>
  <pre><code>  $scope.compute1 = 0;
    $scope.compute2 = 10;
  
    $scope.math = function() {
      $scope.compute1 = parseInt($scope.compute1);
      $scope.compute2 = parseInt($scope.compute2);
  
      $scope.compute1 = parseInt($scope.compute1);
    };
  </code></pre>
  <p><strong><a href="http://jsfiddle.net/enigmarm/uuLUG/1/" rel="nofollow noreferrer">fiddle</a></strong></p>
  <p>Example of problem: if a user types in 1000. It's fine. But then if they want to go back and change the number to 156000 by just adding the 5 and 6, the 6 would actually be appended to the end: 15006.</p>