title: Get Angular scope variable length
body: <p>I need to get the length of Angular model <code>$scope</code>. My code alerts <code>undefined</code>.<br>
  But <code>scope</code> has a value when I alert <code>scope</code> without <code>length</code></p>
  
  <pre><code>alert($scope.comppostal.length)
  </code></pre>
  
  <p>How to check the length? Content of <code>$scope.comppostal</code> is <code>12345</code></p>