mobigaurav
mobigaurav

Reputation: 194

Hide nav-bar in Ionic app

On login screen of my mobile app , i want to hide default nav-bar by ionic. I want screen to be full size not having any header bar. I saw a lot of answers on below links:

Good pattern for hiding ion-nav-bar on login and not having a back button just after login?

how to hide header bar in ionic?

But it did not fix the actual issue. i am able to hide nav-bar but blank space is taken by nav-bar on top which is not getting removed.

Any Clues?

Upvotes: 0

Views: 1723

Answers (1)

Md. Nahiduzzaman Rose
Md. Nahiduzzaman Rose

Reputation: 442

You can do it with the help of css,

<style>
  .tab-nav, .bar-footer{
    display: none !important;
  }

 .bar.bar-header {
   display: none
  }

  .has-tabs-top {
    top: 0px !important;
  }
  .has-tabs-bottom {
    bottom: 0px !important;
  }
  .has-tabs, .bar-footer.has-tabs, .has-footer.has-tabs {
    bottom: 0px;
  }
  /* custom header footer overrides */
  .custom-header, .custom-footer{
    display: block !important;
  }
</style> 

This will hide header footer and tab bar, just paste it outside(below) of ion-view of your login page.

Upvotes: 1

Related Questions