# Combining ion-side-menu and ion-tabs in 1 template?

**URL:** <https://forum.ionicframework.com/t/combining-ion-side-menu-and-ion-tabs-in-1-template/6028>\
**Category:** ionic-v1\
**Created:** [June 24, 2014, 10:32am UTC](https://forum.ionicframework.com/t/combining-ion-side-menu-and-ion-tabs-in-1-template/6028 "2014-06-24T10:32:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ducdigital](https://avatars.discourse-cdn.com/v4/letter/d/9e8a1a/32.png) [@ducdigital](https://forum.ionicframework.com/u/ducdigital)\
**Post date:** [June 24, 2014, 10:32am UTC](https://forum.ionicframework.com/t/combining-ion-side-menu-and-ion-tabs-in-1-template/6028/1 "2014-06-24T10:32:29Z")

</div>

Hello guys,

I am currently trying to implement a view that have both side menu and tabs. One example could be like in Facebook application, there is a side menu in the rightside.

The problem I have is that since the **ion-tabs** also provide it’s own view, so it override the view made by **ion-side-menu**.

I was successfully re-show the view made by side menu by remove this div

```
<div class="pane">
    </div>

```

and remove the view class in this.

```
<ion-tabs class="tabs-s42-bottom tabs-icon-only view">

```

I tried programmatically remove this using **on-select** or by **ng-click**.

1. **ng-click** : it does remove both but only when you click to the tab. It does not remove when the program start since there are no element available at that time before ionic render.

2. **on-select** : This function run when ionic render the tab and it select the first element. Works good to remove the class view in ion-tabs, however it does not remove the div pane since this div render later than the function call.

Before remove:  
 ![](https://sea1.discourse-cdn.com/ionicframework/uploads/default/1061/44c4a4d5d3f54e1f.png)

After remove:  
 ![](https://sea1.discourse-cdn.com/ionicframework/uploads/default/1062/3c0d2682ddc25477.png)

My plan to handle tab’s view is to do it programmatically.  
Was there anyone able to combine both of them? What is your approach?

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [June 25, 2014, 5:31pm UTC](https://forum.ionicframework.com/t/combining-ion-side-menu-and-ion-tabs-in-1-template/6028/2 "2014-06-25T17:31:06Z")

</div>

I got it to work like so.

> **[Tabs And Navigation: 1.0.0-beta.6](https://codepen.io/mhartington/pen/sIhpF)**
>
> Demo showing how each tab has its own history stack. Navigating between each tab remembers the correct back and forward views that were visited. Forke...

---

<div class="post-metadata">

**Author:** ![iank](https://avatars.discourse-cdn.com/v4/letter/i/ecd19e/32.png) [@iank](https://forum.ionicframework.com/u/iank)\
**Post date:** [February 19, 2015, 12:56am UTC](https://forum.ionicframework.com/t/combining-ion-side-menu-and-ion-tabs-in-1-template/6028/3 "2015-02-19T00:56:04Z")

</div>

Hello @mhartington please i would like to achieve this {tabs and side menu} now i have a all my templates externally which i serve in the ion-view. Please i find difficulty adding a side-menu to load from templates folder into the ion-views.  
Any help is appreciated  
Thanks

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [February 19, 2015, 2:20pm UTC](https://forum.ionicframework.com/t/combining-ion-side-menu-and-ion-tabs-in-1-template/6028/4 "2015-02-19T14:20:33Z")

</div>

With beta 14, is not really advised to do this anymore.  
Before side-menus and tabs where not really tied to navigation, but that has changed.  
Now each component is tightly tied to the navigation stack and combining them can be problematic.

---

<div class="post-metadata">

**Author:** ![iank](https://avatars.discourse-cdn.com/v4/letter/i/ecd19e/32.png) [@iank](https://forum.ionicframework.com/u/iank)\
**Post date:** [February 19, 2015, 11:42pm UTC](https://forum.ionicframework.com/t/combining-ion-side-menu-and-ion-tabs-in-1-template/6028/5 "2015-02-19T23:42:13Z")

</div>

**OK** thanks a million @mhartington,

---

<div class="post-metadata">

**Author:** ![mdlallemont](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mdlallemont/32/64828_2.png) [@mdlallemont](https://forum.ionicframework.com/u/mdlallemont)\
**Post date:** [March 13, 2015, 4:36pm UTC](https://forum.ionicframework.com/t/combining-ion-side-menu-and-ion-tabs-in-1-template/6028/6 "2015-03-13T16:36:13Z")

</div>

What about sub navigation? Can I use a button bar that sets different routes (states) and navigate within a parent tab? I have successfully done it using ui-view to show and hide regions of the screen, but I cannot navigate forward and get a back button. When I use ion-nav-view it does not display correctly even though I use the ion-view, ion-content hierarchy. Can ion-nav-view work within another ion-view / ion-content?

Maybe if I used tabs on top within tabs on the bottom it would work?
