title: conditional styling on Form Validation AngularJs
body: <pre><code>&lt;label class="item item-input margin5px"&gt;
  &lt;input type="email" name="email"  class="form-control" placeholder="Email" ng-model="user.email" ng-minlength=5 ng-maxlength=100   required&gt;
  &lt;/label&gt;
  </code></pre>
  
  <p>I have minlength, maxlength and required validation on my email field. I want to add a class 'has-error' or add a certain style if any one of these validation fails. Any help would be much appreciated. </p>