Skip to content

Instantly share code, notes, and snippets.

View arlCode's full-sized avatar
💭
Developing the future one bug at a time.

Adam Lewis arlCode

💭
Developing the future one bug at a time.
  • adam-lewis
View GitHub Profile
@shashu10
shashu10 / ngInputFormatter.js
Last active August 16, 2018 21:28
Angular Directive for Phone number and SSN input formatting. Eg: For phone numbers, 4151002020 will be formatted as (415) 100-2020. Can be used to implement any other kind of number input formatting
/*
Automatic number formatting in input field
Usage:
First add 'inputFormatter' to your angular app
<input type="text" formatted-input format-type="tel">
for SSN use format-type="ssn"