Hi,
I use AngularJS manner to route the application. I separated header, footer, content, and sidebar with ui-view as follow in index.html:
<div ui-view="header"></div>
<div ui-view="sidebar"></div>
<div ui-view="content"></div>
<div ui-view="footer"></div>
<ion-nav-view ui-view></ion-nav-view>
and for ui-router:
$stateProvider
.state('app', {
url: "/",
views : {
'header' : {
templateUrl : 'templates/common/header.tpl.html'
},
'sidebar' : {
templateUrl : 'templates/common/sidebar.tpl.html'
},
'content': {
templateUrl : 'templates/common/content.tpl.html'
},
'footer': {
templateUrl : 'templates/common/footer.tpl.html'
}
}
// controller: "homeCtrl"
})
$urlRouterProvider.otherwise('/');
all things are correct in chrome! But when i build it for android! the back hardware button cause that the program exit! It seems the ionicHistory would not work properly! the speed is really fast in the ui-view case. Is there any way to manage back hardware button. I found many issues in disabling back hardware button. but i want to manage it manually!!!
Best Regards,
Mostafa