Move to specific tab programmatically


#1

Hi guys,
I need to move a specific index tab programmatically. In my app I have side menu and bottom tabs. Is it a problem?

I have
public navCtrl: NavController

and invoke
this.navCtrl.parent.select(0);

but select method doesn’t exist.

Help me please


#2

I have never yet seen a use of parent that I felt comfortable with. See this post for an alternative.


#3

It works but I lost the menu icon on header bar. Have you an advice for me?

this.navCtrl.setRoot("TabsPage", {opentab: 0});

TabsPage is my First Tab Page

Thanks