Hi guys,
I’ve been having some issues with the side menu and can’t seem for the life of me, to understand what’s missing…
My index.html has a ion-nav-view where the main view is loaded.
Inside that main view I have the following
<ion-view>
<ion-side-menus>
<ion-pane ion-side-menu-content>
<ion-nav-bar class="bar-stable nav-title-slide-ios7"></ion-nav-bar>
<ion-nav-view name="menuContent" animation="slide-right-left"></ion-nav-view>
</ion-pane>
<ion-side-menu side="left">
<ion-header-bar align-title="center" class="disable-user-behavior bar-dark">
<h1 class="title">Features</h1>
</ion-header-bar>
<ion-content class="ionContentOfFeature blackBackground">
<ion-list>
<ion-item ng-click="ItemClicked(tabs[0])" nav-clear menu-close class="item-icon-left item-icon-right more-item" ng-class="{{tabs[0].iconClass}}">
<i class="icon {{tabs[0].iconOn}} {{tabs[0].class}} atMoreTabLeftIcon"></i>
{{tabs[0].displayName}}
<i ng-class="tabs[0].iconElement"></i>
</ion-item>
<ion-item ng-click="ItemClicked(tabs[1])" nav-clear menu-close class="item-icon-left item-icon-right more-item" ng-class="{{tabs[1].iconClass}}">
<i class="icon {{tabs[1].iconOn}} {{tabs[1].class}} atMoreTabLeftIcon"></i>
{{tabs[1].displayName}}
<i ng-class="tabs[1].iconElement"></i>
</ion-item>
<ion-item ng-click="ItemClicked(tabs[2])" nav-clear menu-close class="item-icon-left item-icon-right more-item" ng-class="{{tabs[2].iconClass}}">
<i class="icon {{tabs[2].iconOn}} {{tabs[2].class}} atMoreTabLeftIcon"></i>
{{tabs[2].displayName}}
<i ng-class="tabs[2].iconElement"></i>
</ion-item>
</ion-list>
</ion-content>
</ion-side-menu>
</ion-side-menus>
My Tab Module is the following
$stateProvider.state('tab', {
url: '/tab',
abstract: true,
templateUrl: '/at/core/tabbar/TabBar.html',
controller: 'TabBarCtrl'
})
.state('tab.gallery',{
url: "/gallery",
views: {
'menuContent': {
templateUrl: "/at/core/features/gallery/Gallery.html",
controller: "GalleryCtrl"
}
}
})
.....
$urlRouterProvider.otherwise('/tab/gallery');
Basicaly I have two issues.
1- The default View is not rendered. The $stateChangeSuccess and $viewContentLoading are triggered but the controllers of that views are not initialized.
2- On side menu click to render different views, there’s also no rendering of the new view and the $viewContentLoaded isn’t triggered…
I had before a tab implementation but I want to have a different navigation logic for android (if that makes any sense, to have two different logics for different platforms)
Can’t seem to figure out what’s wrong but I believe it’s going to be some sort of dumb mistake. I’m using the latest ionic version 1.0.0 - rc2
Thanks in advance