feat(segment): added change event to segment which emits the value

Updated the API docs for segment to include change & click, and updated
some of the function descriptions, removed an unused function. Added
the change & click events to the test case.
This commit is contained in:
Brandy Carney
2015-12-16 15:43:38 -05:00
parent 3e5d360ebf
commit 0f57b1f64f
3 changed files with 34 additions and 24 deletions

View File

@@ -1,9 +1,9 @@
<ion-toolbar>
<ion-segment [(ngModel)]="relationship">
<ion-segment-button value="friends" class="e2eSegmentFriends">
<ion-segment id="segment" [(ngModel)]="relationship" (change)="onSegmentChanged($event)">
<ion-segment-button value="friends" (click)="onSegmentClicked('friends')" class="e2eSegmentFriends">
Friends
</ion-segment-button>
<ion-segment-button value="enemies">
<ion-segment-button value="enemies" (click)="onSegmentClicked('enemies')">
Enemies
</ion-segment-button>
</ion-segment>