Reputation: 14171
How can I specify that a form input only consider values of a minimum and maximum length as valid?
Upvotes: 2
Views: 188
Reputation: 657238
this change in the Angular GitHub repository contains a NgModelMaxLengthValidator
which looks suspiciouly what you are looking for (checked in 8 days ago)
Maybe it's not yet released because I couldn't find it in my Angular package directory
Upvotes: 1