I'm working on a code that needs to accept both decimals and integers. How can I verify this using the ng-pattern
?
An example of the code:
Some test cases include:
1) 22 = Should pass,
2) 22.5 = Should pass,
3) 2a = Should fail,
4) @#@ = Should fail