In my ionic 2 app i applied angular 2 form validations in it . but when i touch on ion input it works well but when i move to other ion input and get back to previous input for changings but i am unable to write even it does not focus ??
can you please guide? did a lot of research on it but found nothing.
<ion-item>
<ion-icon item-left name="ios-mail-outline" ></ion-icon>
<ion-input #email formControlName="email" type="email" placeholder="Email" (keyup.enter)="keytab($event)" >
</ion-input>
<!-- <ion-icon name="ios-camera-outline" item-right ></ion-icon> -->
</ion-item>
<ion-item class="error-message" *ngIf="!loginForm.controls.email.valid &&
loginForm.controls.email.dirty">
Invalid email address.
</ion-item>
<ion-item>
<ion-input #password formControlName="password" type="password" placeholder="Password" ></ion-input>
<ion-icon item-left name="ios-lock-outline" ></ion-icon>
</ion-item>
<ion-item class="error-message" *ngIf="!loginForm.controls.password.valid &&
loginForm.controls.password.dirty">
minimum six characters required
</ion-item>