make input disabled in ionic code example
Example 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>
Example 2: ionic disable input field
<ion-item class="order__status-comments">
<ion-label floating>Observação</ion-label>
<ion-input formControlName="comments" [readonly]="status_loading" type="text"></ion-input>
</ion-item>