angular-maxlength
v1.0.0
Published
Directive for specifying and enforcing a maxlength on all inputs
Downloads
3
Readme
angular-maxlength
Installation
Installation is super easy, simply add the dependency to your build and add to your your input
# use npm
$ npm install angular-maxlength
Add angular-maxlength to your dependencies
angular
.module('yourApp', ['ngMaxLength'])
.controller('SampleController', function () {})
Finally in your template you can add
<input type="number" ng-model=".." maxlength="5" />