# Creation of right side context side menu based on the left side menu content

**URL:** <https://forum.ionicframework.com/t/creation-of-right-side-context-side-menu-based-on-the-left-side-menu-content/3986>\
**Category:** uncategorized\
**Created:** [May 9, 2014, 7:39am UTC](https://forum.ionicframework.com/t/creation-of-right-side-context-side-menu-based-on-the-left-side-menu-content/3986 "2014-05-09T07:39:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinu0805](https://avatars.discourse-cdn.com/v4/letter/v/b5e925/32.png) [@vinu0805](https://forum.ionicframework.com/u/vinu0805)\
**Post date:** [May 9, 2014, 7:39am UTC](https://forum.ionicframework.com/t/creation-of-right-side-context-side-menu-based-on-the-left-side-menu-content/3986/1 "2014-05-09T07:39:12Z")

</div>

I am developing one application which has a side menu having 3 items (say item 1, item 2 and item 3). When i click on item 1, the content changes according to item 1. Based on this content, i want to have a right side context side menu. item 2 and item 3 contents will also have different context menu. Can you please suggest a solution.

---

<div class="post-metadata">

**Author:** ![Calendee](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/calendee/32/13656_2.png) [@Calendee](https://forum.ionicframework.com/u/Calendee)\
**Post date:** [May 9, 2014, 7:36pm UTC](https://forum.ionicframework.com/t/creation-of-right-side-context-side-menu-based-on-the-left-side-menu-content/3986/2 "2014-05-09T19:36:15Z")

</div>

There are 2 ways to go about this :

# 1 : Likely the easiest

Have the contents of the right side menu be loaded from a service based on the current state.  
So, you click Left 1 and navigate to some state. The controller for that state would load an array from the service. This array would hold the items for the right side menu.

# 2 : Use multiple views.

Because Ionic includes the Angular UI `ui-router`, your single state could have multiple views. In your app config, you could configure each state to have 2 views (center, right) and templates for each of them.

Here is a working example of that : [http://codepen.io/calendee/pen/CJjdn](http://codepen.io/calendee/pen/CJjdn)

In this sample, when you choose different States in the left side menu, the right side menu is loaded with a different template.

---

<div class="post-metadata">

**Author:** ![vinu0805](https://avatars.discourse-cdn.com/v4/letter/v/b5e925/32.png) [@vinu0805](https://forum.ionicframework.com/u/vinu0805)\
**Post date:** [May 10, 2014, 5:24pm UTC](https://forum.ionicframework.com/t/creation-of-right-side-context-side-menu-based-on-the-left-side-menu-content/3986/3 "2014-05-10T17:24:32Z")

</div>

Dear Calendee,  
Thank you very much for the swift reply. I was able to solve the problem based on the second option. I really love the IONIC framework. It is a fantastic hybrid mobile framework. It would definitely become one of the best mobile development frameworks. Thanks for this nice tool.

Regards  
Vinod
