Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Como integrar ng-cpf-cnpj com ngMessages? #10

Open
gledsoncruz opened this issue Nov 5, 2015 · 3 comments
Open

Como integrar ng-cpf-cnpj com ngMessages? #10

gledsoncruz opened this issue Nov 5, 2015 · 3 comments

Comments

@gledsoncruz
Copy link

Como usar algo do tipo:

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

Obrigado

@kevinchevallier
Copy link

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.

@biruelrick
Copy link

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

Thanks so much

@biruelrick
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants