title: angularjs text area character counter
body: <p>Hi I have a characeter counter for a text area. My problem is that it doesn't count spaces or linebreaks.  How do I make it so that it does so?</p>
  
  <pre><code>   &lt;div class="controls"&gt;
  
     &lt;textarea rows="4" cols="50"  maxlength="1500" data-ng-minLength="1" data-ng  
      model="createprofilefields.description" required highlight-on-
      error&gt;&lt;/textarea&gt;
  
      &lt;br /&gt;
  
  &lt;!--counter--&gt;
    &lt;span class="form-help"&gt;{{1500-createprofilefields.description.length}}         
     Characters&lt;/span&gt;
  
      &lt;/div&gt;
  </code></pre>