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

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -