How to define side Side menu for each page

See this CodePen sample : http://codepen.io/calendee/pen/bBcDm

Every view has it’s own side menu. This was done by adding an ion-nav-view in the side menu and then having each state decide which template to use for the main app content and the side menu.

.state('app.search', {
    url: "/search",
    views: {
        'appContent' :{
            templateUrl: "search.html"
        },
        'menuList': {
            templateUrl : "menuSearch.html"
        }
    }
})
1 Like