Tab does not change when I switch pages

Asked

Viewed 23 times

0

I am on a page and when click on a button I call an event, I want it to call another screen, they are calling but the tabs is not changing, remains in the same as the button.

inserir a descrição da imagem aqui

Code I’m using to call the page.

this.navCtrl.setPages([
        { page: AboutPage }
      ]);

1 answer

1


Pass the index of the tab you will change as parameter:

this.navCtrl.setPages([{page: AboutPage, tabIndex: 2}]);

From the destination, take the parameter tabIndex and change the tab:

this.nav.parent.select(tabIndex);

Browser other questions tagged

You are not signed in. Login or sign up in order to post.