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 - How to Configure JAXRS and Spring With Annotations -

visual studio - TFS will not accept changes I've made to a Java project -

php - Create image in codeigniter on the fly -