angular-input-ssn

Add this attribute to your input element to make it display as a Social Security Number.

Download .zip Download .tar.gz View on GitHub

$scope.ssn: {{ ssn }}

Try it:

<input type="text" phone ng-model="ssn" />

Check out the source for this page for more details. All we used was this for the main.js file:

'use strict';
var app = angular.module('app', [ 'input-ssn' ]);

app.controller('MainCtrl', function ($scope) {
  $scope.ssn = 123456789;
});