For example: <ion-segment value="default" (ionChange)="yourChangeEvt($event)">
yourChangeEvt(e){
e.detail.value = 'value received in event.' // coming from value attribute on segment button.
//your toggle condition for car / bike list.
}
How so? Your asking something that is very basic. Ionic provides examples in thier docs and the are many 3rd party tutorials as well. Explore solutions yourself, as it is a needed skill in software development. You wont learn anything if you ask people to do the work for you, especially something as basic as what your asking.
Stepping in here. I want to thank the members of the Ionic community (@najam92, @Hills90210, @mikrochipkid) for assisting with this question. Often times, routine questions with easily-discoverable answers are asked in the forum and on the Ionic Discord. While most Ionic developers are happy to point you in the right direction, asking for someone to provide a full code example for this type of question is not a good use of their time.