yuyang041060120 / ng2-validation

angular2 validation
https://yuyang041060120.github.io/ng2-validation/index.html
MIT License
611 stars 213 forks source link

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

Open prakash403 opened 6 years ago

prakash403 commented 6 years ago

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