title: Angular JS issue with string.length in templates
body: <p>I have an issue with AngularJS (version 1.2.6).</p>
  
  <p>For some reason that I could not understand I cannot access the <code>length</code> property of a string variable stored in the <code>$scope</code>.</p>
  
  <p>In the template:</p>
  
  <pre><code>String '{{myObject.someVariable}}' has length '{{myObject.someVariable.length}}'.
  </code></pre>
  
  <p>In the controller: </p>
  
  <pre><code>$scope.myObject = {} ; 
  
  //asynchronuous loading of myObject 
  SomeService.loadObject(function(result)){
      $scope.myObject = result ; 
      console.log("Content: '%s', length:'%i'",$scope.myObject.someVariable,$scope.myObject.someVariable.length);
      $scope.$apply();
  });
  </code></pre>
  
  <p>The result is : </p>
  
  <pre><code>String 'aaaa' has length ''.
  </code></pre>
  
  <p>In the console I correctly see <code>Content:'aaaa', length:'4'</code> </p>
  
  <p>This is ennoying because I display (or not) some parts of the template depending on the string size.</p>
  
  <p><em>Update</em></p>
  
  <p><code>$scope.myObject.someVariable</code> is a string. I added a breakpoint in the callback function with two watches : </p>
  
  <ul>
  <li><code>$scope.myObject.someVariable</code> : "aaaa"</li>
  <li><code>typeof($scope.myObject.someVariable)</code> : "string"</li>
  </ul>