Programmatically changing selected segment


#1

As simple as that, I haven’t been able to found this behaviour. I’m also trying to change the colour dynamically. Have any of you had any luck on this?

<ion-segment-button color='secondary' [disabled]="shouldBeDisabled(2)" value="2">Title</ion-segment-button>

Thanks!!