Created
November 17, 2016 03:16
-
-
Save mtinra/968326bcead6ac792628b10e97b967ad to your computer and use it in GitHub Desktop.
Check input is number angularjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//http://stackoverflow.com/a/31558451/4364777 | |
if ( !isNaN(inputVar) && angular.isNumber(+inputVar)) { | |
//do somthing... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment