Right side header bar icon only for a single path/state


#1

Hi all, I have this menu (it works):

<ion-side-menus enable-menu-with-back-views="false" style="background-color: #00b149;">
  <ion-side-menu-content>
    <ion-nav-bar class="bar-bd-900">
      <ion-nav-back-button>
      </ion-nav-back-button>

      <ion-nav-buttons side="left">
        <button class="button button-icon button-clear ion-android-more-vertical" menu-toggle="left">
        </button>
      </ion-nav-buttons>
    </ion-nav-bar>
    <ion-nav-view name="menuContent"></ion-nav-view>
  </ion-side-menu-content>

  <ion-side-menu side="left" style="font-weight: bolder; color: white; font-size:20px;">
    <ion-header-bar class="bar-bd-900">
      <h1 class="title" style="color: white;">What you want ?</h1>
    </ion-header-bar>
    <ion-content>
      <ion-list>

        <ion-item menu-close href="#/app/immagini/0" class="xitem item-icon-left" style="color: white;">
          Immagini<i class='icon ion-image'></i>
        </ion-item>
        <!--
         OTHER 5 ION-ITEM
         -->
      </ion-list>
    </ion-content>
  </ion-side-menu>
</ion-side-menus>

Now, In a particular path/state I need to have a second icon placed at the right of the nav bar that when clicked send user to another path/state.

How can I do this ?

Thanks.

M.


#2

You may add the following code to that view/route. It should work

 <ion-view>
    <ion-nav-buttons side="right">
        <button class="button button-icon button-clear ion-navicon" ></button>
    </ion-nav-buttons>
---