Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. <span class="label">
  2. User Name
  3. <i class="fa"
  4. ng-class="{'fa-exclamation-triangle': as.vloginUserName(as.forms.login.loginUserName) != 'OK'}"
  5. title="{{ as.vloginUserName(as.forms.login.loginUserName) }}"></i>
  6. </span>
  7. <input class="w15r"
  8. id="loginUserName"
  9. name="loginUserName"
  10. ng-change="as.clearRegisterData()"
  11. ng-model="as.loginUserName"
  12. ng-minlength="3"
  13. type="text"
  14. value="" />
  15.  
  16. vloginUserName = function (field) {
  17. if (angular.isDefined(field)) {
  18. if (field.$error.minlength) return "Minimum Length 5";
  19. }
  20. return "OK";
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement