Answers for "ionic pasword visible inside ion-input"

1

ionic pasword visible inside ion-input

public showPassword: boolean = false;
public showHide(): void
{
	this.showPassword = !this.showPassword;
}

...

<div class="col-12 placeholder">
  <ion-input [type]="showPassword ? 'text' : 'password'" class="col-12" placeholder="Senha" [(ngModel)]="pwd"></ion-input>
  <ion-icon [name]="showPassword ? 'eye-off' : 'eye'" (click)="showHide()"></ion-icon>
</div>
Posted by: Guest on September-29-2020
2

ion input password

<ion-input formControlName="password" type="password"></ion-input>
Posted by: Guest on September-21-2020

Code answers related to "TypeScript"

Browse Popular Code Answers by Language