Click here to Skip to main content
15,881,172 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I have a text box, where I am using Angular JS.. and My code is

<input type="text"
name="XX"
class="username"
ng-model="XX"
ng-pattern ="/\s/"
ng-trim="false"
required placeholder="">

And at Span I used :

ng-show="$scope.UsernameInvalid">
User name entered is not a valid username or having leading, trailing spaces



Which is not working... so please suggest Me ASAP.

Thanks in Advance....
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900