Observe the following instructions:
- Create a new MyIonicInputDirective app using the blank template, as shown, and go into the MyIonicInputDirective folder:
$ ionic start MyIonicInputDirective blank $ cd MyIonicInputDirective
- Open the ./src/app/pages/home/home.html file and replace the content with the following code:
<ion-header> <ion-navbar color="danger"> <ion-title> Login </ion-title> </ion-navbar></ion-header><ion-content padding> <ion-list> <ion-item> <ion-input type="text" placeholder="Username" [(ngModel)]="username" [myIonicInput]="myStyles"></ion-input> </ion-item> <ion-item> <ion-input type="password" placeholder="Password"></ion-input> </ion-item> </ion-list> <p *ngIf="myStyles.showUsername" class="hint">