ngx-phone-mask-br
v1.0.3
Published
Angular directive for autoformatting brazilian phone numbers.
Downloads
530
Maintainers
Readme
NgxPhoneMaskBr
Angular directive for autoformatting brazilian phone numbers.
Usage
Install via npm:
npm install ngx-phone-mask-br
Import in your app.module.ts
:
import { NgxPhoneMaskBrModule } from 'ngx-phone-mask-br';
@NgModule({
imports: [
NgxPhoneMaskBrModule
]
})
Use it:
<input ngxPhoneMaskBr [(ngModel)]='yourModelName'>
or
<input ngxPhoneMaskBr [formControl]='yourControl'>
or
<input ngxPhoneMaskBr 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