I have a textbox with ng-model binding,I'm entering a value with left space(4 or 5 spaces) and changing ng-model value with ng-click. But left space is still present in textbox. I have to use jquery trim to remove left empty space . how to do it in angular. why textbox value not changing 
here is the plunker 

```
       <!DOCTYPE html>
<html>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
<body>
<div ng-app="myApp" ng-controller="myCtrl">
    <input type="text" ng-model="name">
    <button ng-click="save();">Save</button>
    <h1>{{name}}</h1>
    after save:{{savedName}}

</div>

<script>
var app = angular.module('myApp', []);
app.controller('myCtrl', function($scope) {
    $scope.save=function(){
      $scope.name=$scope.name.trim();
      $scope.savedName=$scope.name.trim();
    }
});
</script>
</body>
</html>

```

[here is plunker](https://plnkr.co/edit/4PCytykzKzVvsWCdEKKs?p=preview)