ng-cpf-cnpj-validate
This package contains two directives to validate the brazilians CPF and CNPJ documents.
Installing
To install the component just:
$ bower install ng-cpf-cnpj-validate --save
Then, include the necessary files into your index.html as the example below:
Usage
After that, you can import the new directive using 'validate-cpf' or 'validate-cnpj' to the <input />
as the example below:
Options
You can use this with ui-mask component too, like: