Ionic Footer just in some views

I am trying to guess how to make that.
I need an Ionic footer that should be the same for the whole app but should be hidden or inactive in some views. My doubt is how to difine it only once and the have it in all my templates/ views.

I am using a SideMenu app.

1 Like

You can create some var like $scope.showHeader = “none” where you don’t need footer and then add style=“display:{{showHeader}}” to footer.
But it’s a first what I’ve got into my head.

1 Like

I would not suggest using style=. Instead, use an `ng-if`` for the footer bar.

Something like :

<ion-footer-bar align-title="left" class="bar-assertive" ng-if="showHeader"> // PUT THE NG-IF HERE
  <div class="buttons">
    <button class="button">Left Button</button>
  <h1 class="title">Title!</h1>
  <div class="buttons" ng-click="doSomething()">
    <button class="button">Right Button</button>
1 Like

Thank you @Calendee. This is a great solution.