Im using ionic 4 and I want to hide Tabs based on a condition ,how can i achieve this ? please help me
use this below code in ionviewdidenter event of the page you wan to hide the tabs
<ion-tab-bar #myTabBar id=“myTabBar” slot=“bottom”>
const tabBar = document.getElementById(‘myTabBar’);
tabBar.style.display = ‘none’;
It’s really unidiomatic to interact directly with the DOM in an Angular app. I don’t understand why this would be a recommended approach.
Hi , How can i hide a specific tab ? not the tab bar
I would suggest reading this thread.
then apply all this logic on single tab