messages&quot;&gt;
  &lt;div ng-message=&quot;required&quot;&gt;This field is required&lt;/div&gt;
  &lt;div ng-message=&quot;minlength&quot;&gt;This field is too short&lt;/div&gt;
&lt;/script&gt;

&lt;form name=&quot;myForm&quot;&gt;
  &lt;label&gt;
    Email address
    &lt;input type=&quot;email&quot;
           id=&quot;email&quot;
           name=&quot;myEmail&quot;
           ng-model=&quot;email&quot;
           minlength=&quot;5&quot;
           required /&gt;
  &lt;/label&gt;
  &lt;!-- any ng-messa