I’m trying to change an ionic tab from the TS code using something like:
var t: Tabs = this.navCtrl.parent;
On my html I have:
<ion-tabs [selectedIndex]=“tabIndex” (ionChange)=“tabChange($event)”>
The problem is on tabChange function, the Tab object received has an index different of tabIndex variable. Why this is happening?