So I have seen a lot of answers but none that fits my case. I cannot use jQuery fyi.
<ng-repeat="stuff in junk">
<md-input-container>
<input type="number" ng-model="stuff.value.currentValue" ng-keypress="myController.checkLength(stuff.length)"
This is obviously a very rough mockup of what im doing. Ultimately I am just trying to make a numeric input where i can limit the length and not just have an error telling them too many chars, on submission. Because the model is variable I cannot getelementbyID, cannot use maxlength as its type="number", etc. etc. I'm thoroughly stumped. I would really like to not use a standard input and then do validation on the user input but im out of ideas