I've been attempting to set a default segment as active in my app. After looking through other threads and questions, the solution appears to involve making changes in the segment js file located in the components folder.
However, I can't seem to find any segment file inside the component folder. I have just been entering the code directly into the html pages to include the component.
Have I been approaching this incorrectly? Is there another way to add it?
Thank you for your assistance.
Edit 1:
<div>
<ion-segment [(ngModel)]="testing">
<ion-segment-button value="book">book</ion-segment-button>
<ion-segment-button value="table">table</ion-segment-button>
</ion-segment>
</div>
<div [ngSwitch]="testing" >
<ion-list *ngSwitchWhen="'book'" ngSelected="selected">
<a ion-item>
<ion-label>book list</ion-label>
</a>
</ion-list>
<ion-list *ngSwitchWhen="'table'">
<a ion-item>
<ion-label>table list</ion-label>
</a>
</ion-list>
</div>