AngularJS form validation -
i have simple form:
<form class="form-horizontal" name="loginform" novalidate ng-click="login()" >
and inputs inside "required":
<input required class="input-xlarge" ng-model="uemail" placeholder="email" type="email">
when user load form show error on startup. how start validation after user interaction?
you can use
<span ng-if="form.inputnmae.$touched && form.inputnmae.$error.required">required input</span>
Comments
Post a Comment