BlueSpire/Durandal — pull request #327 by teiles (2013-10-04 18:22:58+00:00)
Title: Route instructions to create viewModel  using an factory function.  e.g....

Two other route instructions beyond moduleId to instantiate viewModel

Route instructions to create viewModel using an factory function.
e.g. { route: '', moduleId: 'todoList', title: 'ToDo', nav: false, factory: this.createToDoFunction }

Route instructions to use a provided instance as the viewModel.
e.g. { route: '', moduleId: 'todoList', title: 'ToDo', nav: false, instance: new ToDo(aModel) }