Skip to content

gilmario-kpslow/angular-brmask

Repository files navigation

glmask

Mascaras simples e flaxiveis para projetos Brasileiros que trabalhan com angular2+.

Development server

Execute ng serve para iniciar o projeto. Acesse http://localhost:4200/.

Como usar

INPUT

<input glMascara formato="CPF" type="text"

PIPE

{{ value | glmask: 'CPF' }}

Formatos disponíveis

  • CPF = '999.999.999-99'
  • CNPJ = '99.999.999/9999-99'
  • CEL = '(99) 9 9999-9999'
  • FIXO = '(99) 9999-9999'
  • CEP = '99.999-999'
  • CGF = '99.999999-9'

Usar

<input glMascara formato="CPF" type="text"

{{ value | glmask: 'CPF' }}

<input glMascara formato="CPF" type="text" outroFormato="CNPJ" alternar="isCnpj"

{{ value | glmask: 'CPF': CNPJ : isCnpj }}

isCnpj(value) { return value.length > 11; }

GlFone

<input glFone type="text"

{{ value | glmask: 'CPF' }}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published