ng2-telefone-mask
v1.0.24
Published
Mascara para telefone que suporta 9 digitos.
Downloads
64
Readme
ng2-telefone-mask
Mascara para telefone que suporta 9 digitos.
Instalação
npm install ng2-telefone-mask
Implementação
Importe a diretiva dentro do módulo que deseja fazer uso:
import { TelefoneMaskModule } from "ng2-telefone-mask";
@NgModule({
imports: [
....,
TelefoneMaskModule
],
...
})
Exemplo de como deve ser usado no projeto.
<input type="text" TelefoneMask placeholder='Telefone'>
OBS:. esta mascara somente funciona com inputs do tipo 'text', como no exemplo acima;