Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 428 Bytes

README.md

File metadata and controls

15 lines (12 loc) · 428 Bytes

input-mask

A simple input mask directive for AngularJS. It's currently only for numeric characters.

Demo

How to use

First, replace the module name with yours.

angular.module('yourModuleName').directive('inputMask', ...) // replace module name

Using it is as simple as follows

<input type="text" input-mask="xx / xx / xxxx" ng-model="$ctrl.myModel"/>