title: Angular validation message for maxlength attribute
body: <p>I'm having some trouble with displaying error messages for the maxlength attribute in Angular.</p>
  
  <p><strong>Problem</strong></p>
  
  <p>Since the maxlength attribute don't allow more characters than the specified amount, I'm having trouble displaying my error message. Is there any way to turn of the default behavior (allow the user to type more characters), in order to display my error message.</p>
  
  <p>Code for textarea</p>
  
  <pre><code>&lt;textarea maxlength="10"
            [(ngModel)]="title.value"
            #title="ngModel"&gt;&lt;/textarea&gt;
  </code></pre>
  
  <p>Code for Angular validation</p>
  
  <pre><code>&lt;div *ngIf="title.errors &amp;&amp; (title.dirty || title.touched)"
        class="alert alert-danger"&gt;
      &lt;div [hidden]="!title.errors.maxlength"&gt;
        Only 10 characters allowed.
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>If you want me to provide any additional information, please let me know.</p>