Skip to content

idooo/ng-blackmask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ng-blackmask

Simple input mask for AngularJS. Demo

Installation

With Bower:

bower install --save ng-blackmask

How to use

  1. Include the module blackMask in your angular app.

  2. Include the directive bm-numbers-mask with max-length param in your form:

<input type="text" name="field" ng-model="field" bm-numbers-mask max-length="9">
  1. You can set the placeholder character (the default is _):
<input type="text" name="field" ng-model="field" bm-numbers-mask max-length="9" placeholder="*">

Browser support

IE8+, Chrome, Firefox, iOS 7 Safari/Chrome. Unfortunately Android browsers don't work with this mask correctly so be careful if you want to support them

About

Simple placeholder for Angular

Resources

License

Stars

Watchers

Forks

Packages

No packages published