I probably lack something basic, but when creating a navigation, I try to define several parameterized routes in the shell. The idea is that all these routes will pass the user through the same view / vm, but the parameter will determine the content displayed after the ajax call). Routing itself works well, but the header is always passed from the first route on the list.
activate: function () {
router.makeRelative({moduleId: 'viewmodels'}).map([
{
route: 'grid/:page',
title: 'Title 1',
moduleId: 'grid',
nav: 3,
hash: '#grid/param1'
},
{
route: 'grid/:page',
title: 'Title 2',
moduleId: 'grid',
nav: 2,
hash: '#grid/param2'
},
{
route: 'grid/:page',
title: 'Title 3',
moduleId: 'grid',
nav: 4,
hash: '#grid/param3'
},
{
route: 'grid/:page',
title: 'Title 4',
moduleId: 'grid',
nav: 5,
hash: '#grid/param4'
}
]).buildNavigationModel();
};
, , , " 1". Nav . . shell.html splat , , .
, , ?