1.0.0 • Published 8 years ago

angular-maxlength v1.0.0

Weekly downloads
5
License
MIT
Repository
github
Last release
8 years ago

angular-maxlength

NPM

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" />