Mascaras simples e flaxiveis para projetos Brasileiros que trabalhan com angular2+.
Execute ng serve
para iniciar o projeto. Acesse http://localhost:4200/
.
INPUT
<input glMascara formato="CPF" type="text"
PIPE
{{ value | glmask: 'CPF' }}
- 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'
<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; }
<input glFone type="text"
{{ value | glmask: 'CPF' }}