subarroca/ng-password-strength

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

Opened this issue · 2 comments

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}}

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

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

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

Thanks a lot!