ng-cpf-cnpj icon indicating copy to clipboard operation
ng-cpf-cnpj copied to clipboard

Como integrar ng-cpf-cnpj com ngMessages?

Open gledsoncruz opened this issue 10 years ago • 3 comments

Como usar algo do tipo:

div ng-message="ng-cpf" >CPF inválido !

Obrigado

gledsoncruz avatar Nov 05 '15 18:11 gledsoncruz

We are using the available classes to display or hide error messages: ng-valid-cpf and ng-invalid-cpf. Then use some css that could go like this:

.input-field
    &.ng-invalid-cpf
        &~.input-info-msg
            display: block

If it helps.

kevinchevallier avatar Apr 14 '16 20:04 kevinchevallier

Is possible to use the ng-cnpj with angular-formly? Are there some example?

Thanks so much

biruelrick avatar Dec 13 '16 18:12 biruelrick

I resolved it... http://stackoverflow.com/questions/41128277/i-cant-add-ng-cnpj-directive-using-angular-formly/41148994#41148994

Thanks

biruelrick avatar Dec 14 '16 17:12 biruelrick