I have to validate a number field with following criteria using custom directive in angularjs and here is a working code custom directive for numeric only
for the below criteria (a) and need to satisfy other two criteria's (b & C) using custom directive.
a)should not allow alphabets or special characters
b)should not start with Zero
c)maximum numbers allowed is 9
Valid Entries: 11111,123,100000000,1 etc
Invalid Entries:0111(started with zero),1234567891(10 digits) etc
I need help to satisfy other 2 conditions in angularjs