.email&quot;
         name=&quot;myEmail&quot;
         ng-minlength=&quot;5&quot;
         ng-maxlength=&quot;100&quot;
         required /&gt;
&lt;/label&gt;
&lt;div ng-messages=&quot;myForm.myEmail.$error&quot; role=&quot;alert&quot;&gt;
  &lt;div ng-message-exp=&quot;&#39;required&#39;&quot;&gt;You did not enter your email address&lt;/div&gt;
  &lt;div ng-message-exp=&quot;[&#39;minlength&#39;, &#39;maxlength&#39;]&quot;&gt;
    Your email must be between 5 and 100 characters long
  &lt;/div&gt;
&lt;/di