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

bug: form controller is not working properly (validators should 1 single time set) #163

Closed
AnthonyNahas opened this issue Apr 18, 2019 · 1 comment
Assignees
Labels
bug Something isn't working ready

Comments

@AnthonyNahas
Copy link
Member

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

OS and Version?

Versions

latest

Repro steps

get reference of the mat-password-strength component and get access to the formController --> the validators are not set properly

Desired functionality

ability to use the validators in combination with mat-error : e.g:

<!--password error msgs-->
              <mat-error *ngIf="passwordComponentWithValidation.passwordFormControl.invalid">
                Password is invalid
              </mat-error>
              <mat-error *ngIf="passwordComponentWithValidation.passwordFormControl.hasError('required')">
                Password is required
              </mat-error>
              <mat-error *ngIf="passwordComponentWithValidation.passwordFormControl.hasError('pattern')">
                Password is not valid
              </mat-error>
@AnthonyNahas AnthonyNahas self-assigned this Apr 18, 2019
@AnthonyNahas AnthonyNahas added the bug Something isn't working label Apr 18, 2019
@AnthonyNahas
Copy link
Member Author

fixed in v3.8.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ready
Projects
None yet
Development

No branches or pull requests

1 participant