angular-input-usphone

Add this attribute to your input element to make it display as a phone number.

Download .zip Download .tar.gz View on GitHub

$scope.number: {{ number }}

Try it:

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

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-usphone' ]);

app.controller('MainCtrl', function ($scope) {
  $scope.number = 5558675309;
});