Skip to content

Latest commit

 

History

History
36 lines (32 loc) · 1.02 KB

README.md

File metadata and controls

36 lines (32 loc) · 1.02 KB

Installation

$ npm install ssn-mask
Create app.js
var app = angular.module('ssnApp', ['ssnMaskMod']);

app.controller('MainCtrl', function($scope) {
  $scope.ssnval = '';
});
Create index.html
<!DOCTYPE html>
<html ng-app="ssnApp">
  <head>
    <script src="https://code.jquery.com/jquery.js"></script>
    <script data-require="[email protected]" src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.11/angular.min.js" data-semver="1.5.11"></script>
    <script src="node_modules/jquery.maskedinput/src/jquery.maskedinput.js"></script>
    <script src="node_modules/ssn-mask/ssn-mask.js"></script>
    <script src="app.js"></script>
  </head>
  <body ng-controller="MainCtrl">
    <input type="text" ng-model='ssnval' ssn-input >
    <p>SSN {{ssnval}} !</p>
  </body>
</html>
Dependencies

Demo: