Show and hide tabs (a signle ion-tab) in Ionic

HI everyone!

I’m currently trying to show and hide tabs on a page of mine dynamically.

My question is, how do you do that?

I tried declaring a variable in home.ts called seeTabs: boolean = false;
But somehow I can’t assign it’s value to the tab.
I tried doing
<ion-tab … show=seeTabs …></ion-tab>

I also tried
show=“seeTabs”, show=this.seeTabs, show=“this.seeTabs”
but nothing works.
Do you have any idea how to do this?
I mean I tried doing what the documentation said…

Best regards,
Jan

You need to use either data binding or templating

either this

[show] = "seeTabs"

or

show = "${seeTaps}"

both should work

2 Likes

Thank you so much! It worked!