npm.io
1.0.3 • Published 8 years ago

ngx-phone-mask-br

Licence
ISC
Version
1.0.3
Deps
9
Size
65 kB
Vulns
0
Weekly
0
Stars
4

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

Keywords