This library is based on service of awesome https://github.com/JsDaddy/ngx-mask, as this don't work with Ionic 2+ because of the way they wrap the input inside an ion-input, we create ion-mask that gather https://github.com/JsDaddy/ngx-mask and https://
npm install @pluritech/ion-mask

To install this library, run:
``bash`
$ npm install @pluritech/ion-mask --save
and then from your Ionic AppModule:
`typescript
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';
import { MyApp } from './app.component';
import { HomePage } from '../pages/home/home';
// Import your library
import { IonMaskModule } from '@pluritech/ion-mask';
@NgModule({
declarations: [
MyApp,
HomePage
],
imports: [
BrowserModule,
// import the module
IonMaskModule.forRoot()
],
providers: [],
bootstrap: [IonicApp],
entryComponents: [
MyApp,
HomePage
]
})
export class AppModule { }
`
Once the library is imported, you can use the compenents ion-input-mask
`xml`
To generate all .js, .d.ts and *.metadata.json files:
`bash`
$ npm run build
To lint all *.ts files:
`bash``
$ npm run lint
MIT © Lucas Correa