Skip to content

horus20/ionic-input-mask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

ionic-input-mask

Simple input mask for Ionic2

Usage:

import {DirectivesModule} from "../directives/directives.module";

Page html:

<ion-input [(ngModel)]="username" type="tel" [mask-input]="{mask: phoneMask}"></ion-input>

Page class:

phoneMask = ['+', '7', '(', /\d/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, '-', /\d/, /\d/];

About

Simple input mask for Ionic2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published