Ionic side menu and ion tab

I am currently doing an mobile app. I am struggling with putting these two side-menu and tab together. I can do either tab or menu but not both. I have created a demo in Codepen. As you can see in my code, I have the apps.tabs.home controller. I am not sure how to fix this problem.

Here is my code that I have been working with:


 <script id="templates/tabs.html" type="text/ng-template">
      <ion-tabs class="tabs-icon-top tabs-positive">

        <ion-tab title="Home" icon="ion-home" href="#/tab/home">

          <ion-nav-view name="home-tab"></ion-nav-view>

        <ion-tab title="About" icon="ion-ios-information" href="#/tab/about">
          <ion-nav-view name="about-tab"></ion-nav-view>

        <ion-tab title="Contact" icon="ion-ios-world" ui-sref="">
          <ion-nav-view name="contact-tab"></ion-nav-view>



<script id="templates/menu.html" type=text/ng-template>

    <ion-side-menu side="left">
        <header class="bar bar-header bar-assertive">
            <h1 class="title">Menu</h1>
        <ion-content class="has-header">
                <ion-item nav-clear menu-close href="#/home">
                <ion-item nav-clear menu-close href="#/about">
                    Add Expenses
                <ion-item nav-clear menu-close href="#/contact">
                <ion-item nav-clear menu-close href="#/claim">


Here is the controller js

angular.module('ionicApp', ['ionic'])

    .config(function($stateProvider, $urlRouterProvider) {

        .state('tabs', {
          url: "/tab",
          abstract: true,
          templateUrl: "templates/tabs.html"

       .state('app', {
          url: "/app",
          abstract: true,
          templateUrl: "templates/menu.html"

          views: {
            'menuContent': {
              templateUrl: "templates/home.html",
              //controller: 'HomeTabCtrl'
        .state('tabs.home', {
          url: "/home",
          views: {
            'home-tab': {
              templateUrl: "templates/home.html",
              controller: 'HomeTabCtrl'

        .state('tabs.about', {
          url: "/about",
          views: {
            'about-tab': {
              templateUrl: "templates/about.html"
        .state('', {
          url: "/contact",
          views: {
            'contact-tab': {
              templateUrl: "templates/contact.html"



Check out this codepen. It’s got a working sidemenu/tab navigation with 1.0.1:


work great, thanks :smile:

@emily You are my hero!!

1 Like

@emily Hi Emily, icon-on=“ion-ios7-filing” icon-off="ion-ios7-filing-outline"
isn’t working. How to make it work? and I also tried to add taps-striped class, and it doesn’t work.

I’ve updated the Codepen to use Ionic 1.3.1 and have fixed the tabs.

icon-on and icon-off weren’t working before because the Codepen didn’t actually use the Ionic tab directives, which it now does.

Hope this helps!!

Hi @emily ,

I also got the tabs working with a side menu before I stumbled upon your thread. But mine has an issue where if I switch tab, there is a flicker on every alternate tab switch. I opened your codepen sample to see if yours has that issue and noticed it does too. Any idea on how to fix that flicker?

To reproduce, just switch tabs in your chat view and you will notice that your burger menu will flicker. It is not very noticable in your example but my nav bar has a few more items and thus the flicker is quite obvious.