ngx-phone-mask-rus
v1.0.0
Published
Angular directive for autoformatting russian phone numbers.
Downloads
8
Maintainers
Readme
NgxPhoneMask
Angular directive for autoformatting international phone numbers.
Usage
Install via npm:
npm install ngx-phone-mask-rus
Import in your app.module.ts
:
import { NgxPhoneMaskModule } from 'ngx-phone-mask';
@NgModule({
imports: [
NgxPhoneMaskModule
]
})
Use it:
<input ngxPhoneMask [(ngModel)]='yourModelName'>
or
<input ngxPhoneMask [formControl]='yourControl'>
or
<input ngxPhoneMask formControlName='yourControlName'>
Contribution
This component is under development. Pull requests and issues (PR's better) are welcome.
To publish:
git commit
npm version patch
npm run build
npm publish dist