danicomas / angular-jquery-maskedinput

digitalBush/jquery.maskedinput to AngularJS
15 stars 6 forks source link

angular-jquery-maskedinput

digitalBush/jquery.maskedinput (https://github.com/digitalBush/jquery.maskedinput) to AngularJS

Scripts

<script type="text/javascript" src="https://github.com/danicomas/angular-jquery-maskedinput/raw/master//cdn.jsdelivr.net/jquery.maskedinput/1.3.1/jquery.maskedinput.min.js"></script>
<script src="https://github.com/danicomas/angular-jquery-maskedinput/raw/master/scripts/angular-jquery-maskedinput.js"></script>

App

var app = angular.module('YourApp', ['angular-jquery-maskedinput']);

View

<input type="text" id="Creation_Date" name="Creation_Date" maxlength="50" class="form-control" data-ng-model="event.date" mask data-mask="99/99/9999" />

Directive Info

You can use:

data-mask

data-mask-placeholder (optative)

More information in https://github.com/digitalBush/jquery.maskedinput

Bower

https://libraries.io/bower/angular-jquery-maskedinput