Angular IMask Plugin Fork
npm install imask-gfit
npm install angular-imask
javascript
import {IMaskModule} from 'angular-imask';
@NgModule({
imports: [
IMaskModule,
...
],
...
}) {...}
`
Usage
`html
[imask]="{mask: '+{7}(000)000-00-00'}"
[unmask]="true"
(accept)="onAccept"
(complete)="onComplete"
[imaskElement]="(elementRef, directiveRef) => maskElement"
/>
{{ value | imask:mask }}
`
More options see in a guide.
Support Development
Paypal
Development
As to make changes to this package follow the steps:
1. Build imask
`
npm run make
`
2. Go to angular-imask directory
`
cd packages/angular-imask
`
3. Launch dev command
`
npm run dev
`
4. (Optional) Launch example app
`
npm run example
``