I am trying to create the tool to confirm the password in the ionic but it is not working. The same code worked on another project.
<ion-item>
<ion-label stacked>Password</ion-label>
<ion-input type="password" class="form-control" name="password" [(ngModel)]="usuario.password" validateEqual="confirmPassword" reverse="true" #password="ngModel" required>
</ion-input>
</ion-item>
<p ion-text [hidden]="password.valid || submitted == false" color="danger" padding-left>
Password required
</p>
<ion-item>
<ion-label stacked>Confirm password</ion-label>
<ion-input type="password" class="form-control" name="confirmPassword" [(ngModel)]="usuario.confirmPassword" validateEqual="password" reverse="false" #confirmPassword="ngModel" required>
</ion-input>
</ion-item>
<p ion-text [hidden]="confirmPassword.valid || (confirmPassword.pristine && submitted == false)" color="danger" padding-left>
Incompatible password
</p>
Could anyone try to help me with this?