This commit is contained in:
이담 정 2022-10-06 06:47:15 +00:00
parent 0bc0edb91b
commit 139cd5e001
2 changed files with 8 additions and 7 deletions

View File

@ -82,12 +82,12 @@
<mat-form-field> <mat-form-field>
<mat-label>비밀번호</mat-label> <mat-label>비밀번호</mat-label>
<input <input
[type]="hide ? 'password' : 'text'" [type]="hide1 ? 'password' : 'text'"
matInput matInput
[formControlName]="'password'" [formControlName]="'password'"
/> />
<mat-icon matSuffix (click)="hide = !hide">{{ <mat-icon matSuffix (click)="hide1 = !hide1">{{
hide ? "visibility off" : "visibility" hide1 ? "visibility_off" : "visibility"
}}</mat-icon> }}</mat-icon>
<mat-error *ngIf="composeForm.get('password')?.hasError('required')"> <mat-error *ngIf="composeForm.get('password')?.hasError('required')">
비밀번호는 필수 입력입니다. 비밀번호는 필수 입력입니다.
@ -101,12 +101,12 @@
<mat-form-field> <mat-form-field>
<mat-label>환전 비밀번호</mat-label> <mat-label>환전 비밀번호</mat-label>
<input <input
[type]="hide ? 'password' : 'text'" [type]="hide2 ? 'password' : 'text'"
matInput matInput
[formControlName]="'exchangePassword'" [formControlName]="'exchangePassword'"
/> />
<mat-icon matSuffix (click)="hide = !hide">{{ <mat-icon matSuffix (click)="hide2 = !hide2">{{
hide ? "visibility_off" : "visibility" hide2 ? "visibility_off" : "visibility"
}}</mat-icon> }}</mat-icon>
<mat-error <mat-error
*ngIf="composeForm.get('exchangePassword')?.hasError('required')" *ngIf="composeForm.get('exchangePassword')?.hasError('required')"

View File

@ -47,7 +47,8 @@ export class RegistComposeComponent implements OnInit {
message: '등록이 성공하였습니다.', message: '등록이 성공하였습니다.',
}; };
hide: boolean = true; hide1: boolean = true;
hide2: boolean = true;
showAlert: boolean = false; showAlert: boolean = false;
isSendDisable = false; isSendDisable = false;
/** /**