feat(select): emit change and select events

Closes #5219
This commit is contained in:
Adam Bradley
2016-01-27 13:16:07 -06:00
parent 5d4a8fea8c
commit e19d4e38c0
6 changed files with 26 additions and 11 deletions

View File

@@ -4,7 +4,13 @@ import {App, Page} from 'ionic/ionic';
@Page({
templateUrl: 'main.html'
})
class E2EPage {}
class E2EPage {
carChange(selectedValues) {
console.log('carChange', selectedValues);
}
}
@App({

View File

@@ -22,7 +22,7 @@
<ion-item>
<ion-label>Car Options</ion-label>
<ion-select [(ngModel)]="carOptions" multiple="true">
<ion-select [(ngModel)]="carOptions" multiple="true" (change)="carChange($event)">
<ion-option value="backupcamera">Backup Camera</ion-option>
<ion-option value="heatedseats">Headted Seats</ion-option>
<ion-option value="keyless">Keyless Entry</ion-option>