Is there any attribute available for Min and Max length validation in Angular Material 7.X ? md-maxlength is deprecated in 7.X version and not working. If we use ng-maxlength it wont show the counter text on validation.
Please suggest.
If you are using any of these Direvtives formControlName
,formControl
or ngModel
, then you can use maxlength
to limit the max characters.
Refer official docs - https://material.angular.io/components/input/overview
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With