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

Doesn't work if validation attributtes are on the password input type? #26

Open
damiangreen opened this issue Nov 16, 2015 · 2 comments

Comments

@damiangreen
Copy link

Due to angular not binding to the model until ng-required, and ng-pattern are satisfied, the password strength attribute does nothing, until they are satisfied. Is there a way around this?
Does your directive allow for pattern parameters?

{{user.Password}}

@damiangreen
Copy link
Author

A workaround is to add ng-model-options="{ allowInvalid: true } to the password input field

<input type="password"
ng-model-options="{ allowInvalid: true }"

@subarroca
Copy link
Owner

The directive is not allowing patterns right now but you're welcome to do it and make a pull request.

Thanks a lot!

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

2 participants