How to change side menu content for specific template
<p>I'm trying to create an app that has a different right side menu when viewing a certain view. There are examples online on how to replace certain buttons in for opening the sidemenu, but there are none of how to replace the content of the menu.
I've got the following code:</p>

<p><strong>menu.html (abstract view that all the other views inherit)</strong></p>

<pre><code>&lt;ion-side-menus enable-menu-with-back-views="false"&gt;
  &lt;ion-side-menu-content&gt;
    &lt;ion-nav-bar class="bar-stable"&gt;
      &lt;ion-nav-back-button&gt;
      &lt;/ion-nav-back-button&gt;
        &lt;!-- Left side menu button --&gt;
      &lt;ion-nav-buttons side="left"&gt;
        &lt;button class="button button-icon button-clear ion-navicon" menu-toggle="left"&gt;
        &lt;/button&gt;
      &lt;/ion-nav-buttons&gt;
      &lt;!-- Right side menu button, updates internetstatus on  click to determine whether or not to show music players--&gt;
      &lt;ion-nav-buttons side="right"&gt;
        &lt;button class="button button-icon button-clear ion-music-note" menu-toggle="right" ng-click="checkConn()"&gt;
        &lt;/button&gt;
      &lt;/ion-nav-buttons&gt;
    &lt;/ion-nav-bar&gt;
    &lt;ion-nav-view name="menuContent"&gt;&lt;/ion-nav-view&gt;
  &lt;/ion-side-menu-content&gt;

  &lt;!-- Left side menu --&gt;
  &lt;ion-side-menu side="left"&gt;
    &lt;ion-header-bar class="bar-stable"&gt;
      &lt;h1 class="title"&gt;Left&lt;/h1&gt;
    &lt;/ion-header-bar&gt;
    &lt;ion-content&gt;
      &lt;ion-list&gt;
        &lt;ion-item menu-close href="#/app/stages"&gt;
          Stages
        &lt;/ion-item&gt;
        &lt;ion-item menu-close href="#/app/info"&gt;
          Info
        &lt;/ion-item&gt;
        &lt;ion-item menu-close href="#/app/newsfeed"&gt;
          News feed
        &lt;/ion-item&gt;
        &lt;ion-item menu-close href="#/app/floorplan"&gt;
          Floorplan
        &lt;/ion-item&gt;
      &lt;/ion-list&gt;
    &lt;/ion-content&gt;
  &lt;/ion-side-menu&gt;

  &lt;!-- Right side menu --&gt;
  &lt;ion-side-menu side="right"&gt;
    &lt;ion-header-bar class="bar-stable"&gt;
      &lt;h1 class="title"&gt;Right&lt;/h1&gt;
    &lt;/ion-header-bar&gt;
    &lt;ion-content&gt;
      &lt;ion-list&gt;
        &lt;ion-item menu-close ng-show="internetconn" style="padding: 5px;" class="player"&gt;
          &lt;iframe width="100%" height="60" src="https://www.mixcloud.com/widget/iframe/?embed_type=widget_standard&amp;amp;embed_uuid=bbb2b97a-f82c-4732-a951-94fcf0a7dd72&amp;amp;feed=https%3A%2F%2Fwww.mixcloud.com%2FERMAHGERD_BERTMERN%2F0715-spieje-summer-mixtape%2F&amp;amp;hide_cover=1&amp;amp;hide_tracklist=1&amp;amp;light=1&amp;amp;mini=1&amp;hide_artwork=1&amp;amp;replace=0" frameborder="0"&gt;&lt;/iframe&gt;
        &lt;/ion-item&gt;
        &lt;ion-item menu-close ng-show="internetconn" style="padding: 5px;" class="player"&gt;
          &lt;iframe width="100%" height="60" src="https://www.mixcloud.com/widget/iframe/?embed_type=widget_standard&amp;amp;embed_uuid=8b9f98e7-dee8-4492-94b1-df72753057d9&amp;amp;feed=https%3A%2F%2Fwww.mixcloud.com%2FERMAHGERD_BERTMERN%2F0515-spieje-mixtape-mei-2015%2F&amp;amp;hide_cover=1&amp;amp;hide_tracklist=1&amp;amp;light=1&amp;amp;mini=1&amp;hide_artwork=1&amp;amp;replace=0" frameborder="0"&gt;&lt;/iframe&gt;
        &lt;/ion-item&gt;
        &lt;ion-item menu-close ng-show="internetconn" style="padding: 5px;" class="player"&gt;
          &lt;audio style="width:100%" controls&gt;&lt;source src="http://www.spieje.nl/downloads/mixtape/Spieje2015MixtapeApr.mp3" type="audio/mpeg"&gt;&lt;/audio&gt;
        &lt;/ion-item&gt;
        &lt;ion-item menu-close ng-hide="internetconn"&gt;
          Geen internet!
        &lt;/ion-item&gt;
      &lt;/ion-list&gt;
    &lt;/ion-content&gt;
  &lt;/ion-side-menu&gt;
&lt;/ion-side-menus&gt;
</code></pre>

<p><strong>Other view html (where menu must be different)</strong></p>

<pre><code>&lt;ion-view view-title="Floorplan"&gt;
    &lt;!-- Override right button, change icon--&gt;
    &lt;ion-nav-buttons side="right"&gt;
        &lt;button class="button button-icon button-clear ion-map" menu-toggle="right"&gt;
        &lt;/button&gt;
    &lt;/ion-nav-buttons&gt;
    &lt;!-- Override right menu content --&gt;
    &lt;!-- Right side menu --&gt;
    &lt;ion-side-menu side="right"&gt;
        &lt;ion-header-bar class="bar-stable"&gt;
            &lt;h1 class="title"&gt;Right&lt;/h1&gt;
        &lt;/ion-header-bar&gt;
        &lt;ion-content&gt;
            &lt;ion-list&gt;
                &lt;ion-item&gt;
                    &lt;button class="button button-icon button-clear ion-map"&gt;&lt;/button&gt;
                &lt;/ion-item&gt;
                &lt;ion-item&gt;
                    &lt;button class="button button-icon button-clear ion-paper-airplane"&gt;&lt;/button&gt;
                &lt;/ion-item&gt;
                &lt;ion-item&gt;
                    &lt;button class="button button-icon button-clear ion-transgender"&gt;&lt;/button&gt;
                &lt;/ion-item&gt;
                &lt;ion-item&gt;
                    &lt;button class="button button-icon button-clear ion-pizza"&gt;&lt;/button&gt;
                &lt;/ion-item&gt;
            &lt;/ion-list&gt;
        &lt;/ion-content&gt;
    &lt;/ion-side-menu&gt;
    &lt;!-- Page content --&gt;
    &lt;ion-content&gt;
        Image here
    &lt;/ion-content&gt;
&lt;/ion-view&gt;
</code></pre>

<p>The button icon changes and works, but the result is that the right menu content stays the same and there is a weird list in the content view with the content I want to appear in the menu.</p>

<p>Is there a way to do this in the html like this, and if so, how. Or is my only option to use a boolean and use ng-show and ng-hide?</p>

<p><strong>EDIT</strong></p>

<p>I used a combination of <em>$rootScope</em>, <em>$ionicView.enter</em> and <em>$ionicView.leave</em> to keep track of when the view was selected. Then I used <em>ng-show</em> and <em>ng-hide</em> in the menu's.</p>

<p>The answer below is the answer to the question, but this didn't work for me as I had music players in the right menu and I wanted them to keep playing.</p>