title: length of whitespaces-only strings?
body: <p>I have a little angularjs app:</p>
  
  <pre><code>&lt;div ng-app="myApp"&gt;
    &lt;div ng-controller="MyController"&gt;
      &lt;input type="text" ng-model="value"/&gt;
      &lt;span&gt;{{value.length}}&lt;/span&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>and</p>
  
  <pre><code>var app = angular.module('myApp', []);
  app.controller('MyController', function($scope) {
      $scope.value = '  ';
  });
  </code></pre>
  
  <p>it can be seen under: <a href="http://jsfiddle.net/Er26f/1/" rel="nofollow">JSFiddle Link</a></p>
  
  <p>At first, it displays a length of 2. When I remove one of the whitespaces in the input field, it displays a length of 0. I don't understand this behaviour. Is this a javascript or angularjs issue?</p>
  
  <p>How can I get the length of an input including leading and trailing whitespaces?</p>