Contents tagged with ng-maxlength

  • Creating Your Own Custom Angular Maxlength Directive For Readonly Restrictions

    Here's an example - you've got a field (eg, for customer comments) where you'd like to limit the maximum number of characters entered on the frontend. Pretty simple, you just throw on ng-maxlength, right? <textarea class="form-control msd-elastic" ng-model="comments" ng-maxlength="100" name="comments"></textarea> But now, you also want … more

  • 1