title: Limit the length of a string with AngularJS
body: <p>I have the following:</p>
  
  <pre><code>&lt;div&gt;{{modal.title}}&lt;/div&gt;
  </code></pre>
  
  <p>Is there a way that I could limit the length of the string to say 20 characters?</p>
  
  <p>And an even better question would be is there a way that I could change the string to be truncated and show <code>...</code> at the end if it's more than 20 characters?</p>