de>email</code> with a maximum length of 15 characters.</p>
<pre><code class="lang-html">&lt;form name=&quot;myForm&quot;&gt;
  &lt;label&gt;
    Enter text:
    &lt;input type=&quot;email&quot; ng-model=&quot;field&quot; name=&quot;myField&quot; required maxlength=&quot;15&quot; /&gt;
  &lt;/label&gt;
  &lt;div ng-messages=&quot;myForm.myField.$error&quot; role=&quot;alert&quot;&gt;
    &lt;div ng-message=&quot;required&quot;&gt;Please enter a value for this field.&lt;/div&gt;
    &lt;div ng-message=&quot;