Ionic 4 Segment Live Example
Segments are a collection of related buttons that displayed in a horizontal row. The functionality of the Ionic segment is the same as Ionic tabs, where you select the one tab that will deselect all other tabs. HTML <ion-segment [(ngModel)]=”boxes”> <ion-segment-button value=”box1″> Box 1 </ion-segment-button> <ion-segment-button value=”box2″> Box 2 </ion-segment-button> </ion-segment> <div [ngSwitch]=”boxes”> <div *ngSwitchCase=”‘box1′”>