Last active
April 30, 2018 00:26
-
-
Save djabif/eab6dccb65ebb19bfda6e1ef0d679951 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div formGroupName="matching_passwords"> | |
<mat-form-field class="full-width"> | |
<input matInput type="password" placeholder="Password" formControlName="password" required> | |
<mat-error *ngFor="let validation of account_validation_messages.password"> | |
<mat-error class="error-message" *ngIf="accountDetailsForm.get('matching_passwords').get('password').hasError(validation.type) && (accountDetailsForm.get('matching_passwords').get('password').dirty || accountDetailsForm.get('matching_passwords').get('password').touched)">{{validation.message}}</mat-error> | |
</mat-error> | |
</mat-form-field> | |
<mat-form-field class="full-width"> | |
<input matInput type="password" placeholder="Confirm Password" formControlName="confirm_password" [errorStateMatcher]="parentErrorStateMatcher" required> | |
<mat-error *ngFor="let validation of account_validation_messages.confirm_password"> | |
<mat-error class="error-message" *ngIf="(accountDetailsForm.get('matching_passwords').get('confirm_password').hasError(validation.type)|| accountDetailsForm.get('matching_passwords').hasError(validation.type)) && (accountDetailsForm.get('matching_passwords').get('confirm_password').dirty || accountDetailsForm.get('matching_passwords').get('confirm_password').touched)">{{validation.message}}</mat-error> | |
</mat-error> | |
</mat-form-field> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment