yuyang041060120 / ng2-validation

angular2 validation
https://yuyang041060120.github.io/ng2-validation/index.html
MIT License
611 stars 213 forks source link

Added 'wholeNumber' and 'notWholeNumber' validators #132

Open b-ozcan opened 5 years ago

b-ozcan commented 5 years ago

Added validators for checking whole and not whole numbers. (a.k.a. check for is int or !int)

validator value result
wholeNumber 9.5 true
wholeNumber 9 false
validator value result
notWholeNumber 9.5 false
notWholeNumber 9 true