Page 1 of 1

Ionic set active tab on page load.

Posted: Thu Jul 14, 2016 2:54 am
by Matt Simoncavage

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.