Matt Simoncavage
Posts: 0
Joined: Thu Jun 04, 2015 7:10 pm

Ionic set active tab on page load.

Hi, I have a page in ionic with two buttons. Both navigate to the same page that contains a tab with two tab items. When I click button 1 on the first page, I want the 1st tab to be active on the second page. When I click the second button, I want to do the opposite: tab 2 should be active. I tried setting a variable on the first page and then setting the Active class on the tabs using an ng-show for that variable, but it doesn't working: for some reason, both tabs are now active.

Return to “Issues”