I'm using the child routers in Durandal
for tab control.
However whenever you change tab, it creates a history event. Again and again. It has made my "Close" button pointless because I cannot router.navigateBack()
anymore (would need to many times).
Is there a way to navigate back beyond the current parent route, or make the child router create no history?
var childRouter = m_router
.createChildRouter()
.makeRelative({ moduleId: 'viewmodels/manage/bill/center', fromParent: true })
.map([
{ route: ['contract', ''], moduleId: 'contract', title: 'Contracts', nav: true },
{ route: 'job', moduleId: 'job', title: 'Jobs', nav: true },
{ route: 'order', moduleId: 'order', title: 'Orders', nav: true }
]).buildNavigationModel();
Thanks.