3 levels of subviews combining the Navigation insert and the sidebar Navigation using ionic frames

I see many examples combining tab navigation and side menu navigation, but they are not nested or examples with nested views just for side menu navigation. In my case, I would like to implement tab navigation inside one only for side menu navigation, however, I tried for several days, but still can not figure it out, here is my pen: http://codepen.io/auching/ pen / vyzJg

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

  $stateProvider
    .state('eventmenu', {
      url: "/event",
      abstract: true,
      templateUrl: "event-menu.html"
    })
    .state('eventmenu.home', {
      url: "/home",
      views: {
        'menuContent' :{
          templateUrl: "home.html"
        }
      }
    })
    .state('eventmenu.checkin', {
      url: "/check-in",
      views: {
        'menuContent' :{
          templateUrl: "check-in.html",
          controller: "CheckinCtrl"
        }
      }
    })
  .state('eventmenu.checkin.home1', {
      url: "/home1",
      views: {
        'home1-tab' :{
          templateUrl: "home1.html",
        }
      }
    })
  .state('eventmenu.checkin.home2', {
      url: "/home2",
      views: {
        'home2-tab' :{
          templateUrl: "home2.html",
        }
      }
    })
    .state('eventmenu.attendees', {
      url: "/attendees",
      views: {
        'menuContent' :{
          templateUrl: "attendees.html",
          controller: "AttendeesCtrl"
        }
      }
    })

  $urlRouterProvider.otherwise("/event/home");
})

Any help would be greatly appreciated! THX

+4
source share
1

Source: https://habr.com/ru/post/1547299/


All Articles