Page 1 of 1

If tab is active, show element

Posted: Fri Jul 22, 2016 8:55 pm
by Matt Simoncavage

Hi, I have a set of tabs (the component, not the index ones) on a page in my Ionic app. There is Tab1 and Tab2. I have an image outside of the tab content elsewhere on my page. What I need to do is show it when Tab1 is active, but hide it when Tab2 is active. Is this possible, or is the only way to put it inside the tab content?


If tab is active, show element

Posted: Sat Jul 23, 2016 8:32 am
by Serhii Kulibaba

Hello Matt,

Please set some scope variable on the tab ng-click function and use that variable in the ng-hide attribute of the element, outside of the tab control