NGMask

NGMask By Douglas Lira This directive was created to apply mascara on input values.

How to use ng-mask - Basic

ng-mask ng-model="model" Format mask

ng-mask ng-model="model" mask="##,##" Limit values with ng-mask

ng-mask ng-model="model" mask="##,##" value-max="10,11" Mask for currency values

ng-mask ng-model="model" mask="[.###],##" CPF or CNPJ

ng-mask ng-model="model" mask="###.###.###-##|##.###.###/####-##" Phone (8 or 9 digits)

ng-mask ng-model="model" mask="## ####-####|## #####-####" Attention!!

1 - By default the ng-mask defines a maximum of 30 characters 2 - It is compulsory to wear ng-model

comments powered by Disqus
This page was last updated almost 3 years ago.