fix(input): add event emitters for blur and focus to the ion-input component

fixes #5487
This commit is contained in:
Brandy Carney
2016-03-16 12:46:27 -04:00
parent 904775430b
commit 3e88fe9f31
4 changed files with 56 additions and 10 deletions

View File

@ -9,7 +9,11 @@
<ion-item>
<ion-label fixed>To</ion-label>
<ion-input [(ngModel)]="input1"></ion-input>
<ion-input [(ngModel)]="input1"
(blur)="onEvent($event)"
(input)="onEvent($event)"
(focus)="onEvent($event)">
</ion-input>
</ion-item>
<ion-item>
@ -29,7 +33,11 @@
<ion-item>
<ion-label fixed>Comments</ion-label>
<ion-textarea value="Comment value"></ion-textarea>
<ion-textarea value="Comment value"
(blur)="onEvent($event)"
(input)="onEvent($event)"
(focus)="onEvent($event)">
</ion-textarea>
</ion-item>
<ion-item>