What we are looking to do is, have an input that only accepts 0 - 24 (for a time entry application).
These are the values the user should be able to enter into the inpu
Depends on the effect you want to achieve. You can do something like this:
Which will prevent the user from entering any more than 2 characters. If the characters are anything but a number, it will set the field class to ng-invalid-pattern.
If you don't want to prevent the user from entering two characters and just want to show a validation message if they enter three or more, just remove the maxlength.