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

Password Confirm password Validation Error!!!!!! #125

Open
prakash403 opened this issue May 9, 2018 · 0 comments
Open

Password Confirm password Validation Error!!!!!! #125

prakash403 opened this issue May 9, 2018 · 0 comments

Comments

@prakash403
Copy link

Hai Sir,

I am using ng2-validation Component , In this i am used Custom Validation
equalTo for validation password and confirmation password . meanwhile i seen following Errors.

  1. While typing the value for password throw error message.
  2. After that same password typing in confirm password the error message is hide.
    3 . Is there Any possiblity throw a error message after the input details given to confirm password.

I am using below code.

<input type='password' class="form-control" placeholder="Enter your password" ngModel name="password" #password="ngModel" [(ngModel)]="model.password" required/>
<input type='password' class="form-control" placeholder="Enter your password"
ngModel name="confirmpassword" #confirmpassword="ngModel" [(ngModel)]="model.confirmpassword" [equalTo]="password"/>
<p *ngIf="confirmpassword.errors?.equalTo"> mismatch error

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

1 participant