We need a way to show/hide tab dynamically, for example: if a user not logged in, only show 2 tabs. If he/she logged in, show 3 tabs.
Please see to this for a brief discussion: http://forum.ionicframework.com/t/show-hide-ionic-tab-based-on-angular-variable-cause-error-in-background/1563/7
2 thoughts on “Dynamically controlled tab”
Comments are closed.
If you have ng-if on one tab, it moves the tab to the end of the rest of the tabs. A quick fix it to put ng-if=”true” on the rest of the tabs.