Skip to content

Instantly share code, notes, and snippets.

@Gregivy
Gregivy / InputMask.html
Last active October 26, 2018 23:45 — forked from codinronan/InputMask.html
Custom Ionic 2 & 3 Input Mask Directive
<ion-input type="tel" reg="^[0-9]" placeholder="(xxx) xxx-xxxx" mask="(***) ***-****" [(ngModel)]="phone" name="phone"></ion-input>
<ion-input type="tel" reg="^[0-9]" placeholder="xxx-xx-xxxx" mask="***-**-****" [(ngModel)]="ssn" name="ssn"></ion-input>