title: ngClass if string length
body: <p>I want to add a class to my div if a string is larger than 10 characters, I try this but didn't work</p>
  
  <pre><code>&lt;div class="page-heading" ngClass="{'hidden-lines':post.title.length &gt; 10}"&gt;
  </code></pre>