Close Ionic tabs?


#1

I have a login page, in the registration section of the users I have ion-tabs, I want that when the user registers or clicks the button, it returns to the page without tabs.

The way I have found is with modal, I think it is not the most efficient. How could it be otherwise?

Thank you very much for the help.


#2

Simply hide them.


    let tabs = document.querySelectorAll('.show-tabbar');
    if (tabs !== null) {
      Object.keys(tabs).map((key) => {
        tabs[key].style.display = 'none';
      });
    }

If you want to show them use'flex' instead of 'none'. I do it the same way in my application. Didn’t saw any perfomance issues.