Durandal 2.0 Router - how to specify Id? -


i have working in durandal 1.2:

durandal routing: mapping route id?

{  url: 'test', hash: '#/test', moduleid: 'viewmodels/folder', name: 'specific folder', visible: false, settings: {     id: 2 } } 

however appears router no longer supports settings specification: http://durandaljs.com/documentation/conversion-guide/

how can achieved in 2.0?

i don't think possible new router, unfortunately.

however, if goal value activate method of viewmodel during navigation (which settings did), not need router that. assuming value isn't hard coded, determined something. make "something* available viewmodel, , call inside of activate method.

as long you're going, right?


Comments

Popular posts from this blog

java - JavaFX 2 slider labelFormatter not being used -

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -