使用生成的默认 Yeoman 默认 Oracle 仪表板的一部分来说明我的问题:
../src/index.html
../src/js/appController.js
../src/js/main.js
../src/js/views/dashboard.html
../src/js/views/customers.html
../src/js/viewModels/dashboard.js
../src/js/viewModels/customers.js
如果我在仪表板模块中并且我想要类似的东西
function DashboardViewModel() {
...
self.currentRowListener = function (event, ui) {
Router.rootInstance.go('customers');
}
...
我怎样才能做到这一点?我找不到从特定模块重定向到另一个模块的方法