How to display the menu icon in the upper right?


#1

Hi, all,
Thanks in advance

I am developing an iPhone application with ionic2.

On the initial page, I want to display the menu icon in the upper right(←OK).

Except the initial page, you want to display the button to return to the upper left,
the menu button to the upper right. So,I wrote the following code, the display is OK.

Except initial page’s html:

  <ion-navbar>
    <ion-title>Title</ion-title>
    <ion-buttons right>
     <button ion-button icon-only onclick="DoSomething()">
      <ion-icon name="ios-menu"></ion-icon>
     </button>
   </ion-buttons>
  </ion-navbar>

However, when I click on the event, I do not know which event to call and the menu will be displayed.

It is not even displayed even if written as below…
<button ion-button icon-only menuToggle>

The menu page is already setted to display from the right side:
<ion-menu [content]="content" side="right">

Please give me some hint, thanks,


#2

followed code then solved.
<ion-menu [content]="content" side="right" **persistent="true"**>>