Ionic default tab

Hi,

I’m using Ionic 3 with tabs. I have 3 pages and I’m looking to set the middle page as the default one (instead of the one to the left). How can this be done?

Hi,
check the documentation

1 Like

You can set the root Page in your app.component.ts.

I went through that doc page at least 10 times. Not sure how I missed that. Thank you very much!


its in the docs
slectedIndex----->default page to open

<ion-tab [root]=“tab1Root”>
<ion-tab [root]=“tab2Root”>
<ion-tab [root]=“tab3Root”>

1 Like