I have a simple input number like this:
When trying to input anything other than a number or the letter \"e\
You can simply use ng-pattern on your input
ng-pattern
Controller
$scope.onlyDigits= /^\d+$/;
HTML
This pattern use \d which is for any numeric value
\d