hey,
i think i got the main idea. although i have one big question. here is a example code:
angular.module('climb', ['ionic', 'climb.controllers', 'climb.services'])
.config(function($stateProvider, $urlRouterProvider) {
$stateProvider
.state('menu', {
url: "/menu",
templateUrl: "templates/menu.html",
controller: 'MainCtrl'
})
.state('menu.sectorList', {
url: "/sectorList",
parent:"menu",
views:{
'menuContent':{
templateUrl: "templates/sectors.html",
controller: 'SectorCtrl'
}
}
})
.state('sectorList.detail', {
url: "/:si_id",
templateUrl: "templates/details.html",
controller: "DetailsCtrl"
})
.state('menu.settings', {
url: "/settings",
parent:"menu",
views:{
'menuContent':{
templateUrl: "templates/settings.html",
controller: 'SettingsCtrl'
}
}
})
// if none of the above are matched, go to this one
$urlRouterProvider.otherwise("/menu/sectorList");
})
how do i perform the sectorList.detail to open? i have my sectorList which is perfectly fine loaded as well as the settings but if i click on a list item nothing happens. what i want to have is to load the details for this item. the url is changing but the templates does not get loaded. do you know why? i am getting crazy.
many thanks in advance