I am trying to validate < input type = number >
by using input [number]
directive of module ng of angularjs.
When using an input of type number, with the max (or min) attribute set to number such as
<input type=number min=20 max=40>
it works fine , but I my min and max data are coming data dynamically using ng-repeat such as
<input type=number min=configRow.valueStart max=configRow.valueEnd>
,
then it is not working .
I know that min and max only accept number and I am not much good in writing directives for that , Please help me any such directory or any suggestions would be appreciated.