mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
docs(segment): add usage for ionChange event (#11293)
The `Segment` docs do not show a clear example on how to use the `ionChange` event.
This commit is contained in:
committed by
Brandy Carney
parent
b64733aace
commit
7b369a1a6e
@ -31,11 +31,11 @@ import { SegmentButton } from './segment-button';
|
|||||||
*
|
*
|
||||||
* <ion-content>
|
* <ion-content>
|
||||||
* <!-- Segment in content -->
|
* <!-- Segment in content -->
|
||||||
* <ion-segment [(ngModel)]="relationship" color="primary">
|
* <ion-segment [(ngModel)]="relationship" color="primary" (ionChange)="segmentChanged($event)">
|
||||||
* <ion-segment-button value="friends" (ionSelect)="selectedFriends()">
|
* <ion-segment-button value="friends">
|
||||||
* Friends
|
* Friends
|
||||||
* </ion-segment-button>
|
* </ion-segment-button>
|
||||||
* <ion-segment-button value="enemies" (ionSelect)="selectedEnemies()">
|
* <ion-segment-button value="enemies">
|
||||||
* Enemies
|
* Enemies
|
||||||
* </ion-segment-button>
|
* </ion-segment-button>
|
||||||
* </ion-segment>
|
* </ion-segment>
|
||||||
|
|||||||
Reference in New Issue
Block a user