🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more
Socket
Book a DemoInstallSign in
Socket

telefone-mask-ng2

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

telefone-mask-ng2

Máscara de telefone com suporte ao nono dígito.

latest
Source
npmnpm
Version
1.0.7
Version published
Weekly downloads
5
-70.59%
Maintainers
1
Weekly downloads
 
Created
Source

Sobre

Uma simples diretiva que se adapta à telefones com ou sem o nono dígito.

Comportamento

_ Número com o nono dígito _

(99) 9 9999-9999

_ Número sem o nono dígito _

(99) 9999-9999

Uso

Importe a diretiva dentro do módulo que deseja fazer uso:

import { TelefoneMask } from 'telefone-mask-ng2';

E faça a sua declaração dentro do módulo:

declarations: [
    ...
    TelefoneMask
    ...
  ],

Obs: Caso seja um modulo global ou reutilizável não esqueça também de fazer adicionar no array de exports.

Para usar a diretiva basta atribui-la em um input

<input TelefoneMask [(ngModel)]="User.Celular" type="text" />

Keywords

mascara

FAQs

Package last updated on 07 May 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts