bootstrap, has-error - .
, ng-class div.
Angular : myForm.email. $invalid
, , "" , myForm.email. $invalid && myForm.email. $
<form name="myForm">
<div class="form-group" ng-class="{'has-error':myForm.email.$invalid && myForm.email.$dirty}">
<label class="item item-input margin5px"></label>
<input type="email" name="email" class="form-control" placeholder="Email" ng-model="user.email" ng-minlength=5 ng-maxlength=100 required>
</div>
</form>