Conditional ion-footer

I need a conditional footer that only displays occasionally (*ngIf), but the footer shows overlayed on the ion-content. So, ion-content takes up the whole space and does not adjust its height when the footer shows.

Is there a way to “re-initialize” ion-content, when the footer shows/hides?

thanks for your help!
Joachim

Did you figure this out? I’ve been messing with it for a while and haven’t come up with a solution. It seems that any conditional in the footer (even to a child button) causes the footer to overlay the content.

Take a look at content.resize() here: https://ionicframework.com/docs/v2/api/components/content/Content/

There’s also an example:-)

3 Likes

Awesome. Thanks man.