Display the back button and the right menu in Ionic 2

SO I am building an application with Ionic 2. When I navigate using "navController.push", I go to the correct page and the back button appears (as expected), but it also hides my navigation buttons for viewing in the title, This just as expected. But I'm trying to override the “hidden” property that Ionic uses on one of my buttons, does anyone know how to do this?

<ion-header>
  <ion-navbar color="clarity">
    <button ion-button menuToggle>
      <ion-icon name="menu"></ion-icon>
    </button>
    <button ion-button right menuToggle="itemHierarchy">
      <ion-icon name="list"></ion-icon>
    </button>
    <ion-title>Topic View</ion-title>
  </ion-navbar>
</ion-header> 
+4
source share
2 answers

You can find the solution in my other answer here

So this is a duplicate.

persistent = "true" <ion-menu>. menuToggle . , docs

+4

ion-buttons.

:

<ion-header>
  <ion-navbar color="clarity">

    <button ion-button right menuToggle="itemHierarchy">
      <ion-icon name="menu"></ion-icon>
    </button>

    <ion-buttons end>
      <button ion-button>
        <ion-icon name="list"></ion-icon>
      </button>
    </ion-buttons>

    <ion-title>Topic View</ion-title>
  </ion-navbar>
</ion-header>
+1

Source: https://habr.com/ru/post/1658216/


All Articles