You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 22, 2021. It is now read-only.
now maxLength is implemented as attribute in template and min as condition in controller, which is inconsistent (both in code and in tests) and - in the case I run into it - adds complexity to project unit tests of modules which use this function.
It'll also make it easier to validate min and max (to define ng-invalid-* helper class)
The text was updated successfully, but these errors were encountered:
maxLength has always been an attribute applied to the underlying input element. minLength, on the other hand, has to be implemented in Javascript because a "short" tag isn't supposed to be added, and I can't do that in HTML only.
@mbenford You could apply the same logic to the minlength attribute as you do form maxlength. The native maxlength has a flaw that you can't even type anything beyond the limit and it's often useful to paste sth a little longer and remove some characters.
now maxLength is implemented as attribute in template and min as condition in controller, which is inconsistent (both in code and in tests) and - in the case I run into it - adds complexity to project unit tests of modules which use this function.
It'll also make it easier to validate min and max (to define ng-invalid-* helper class)
The text was updated successfully, but these errors were encountered: