BlueSpire/Durandal — pull request #101 by BlueBasher (2013-03-16 16:19:25+00:00)
Title: router.navigateToRoute

Added a navigateToRoute method to the router.
With this method it is possible to navigate to an url with parameters using an object for the parameters. This helps to avoid having the order of parameters in the url throughout the entire application.

As an example, if there is a route 'test/:id' you can navigate to it using router.navigateToRoute('test', { id: 2 });
Or with a route 'test/:id/:comment' you can navigate using router.navigateToRoute('test', { id: 2, comment: 'myComment' });