Boilerplate.js以编程方式导航到组件

时间:2013-02-01 23:46:13

标签: boilerplatejs

我在模块中声明了一个组件并添加为路径:

var controller = new Boiler.UrlController($(“。appcontent”));         controller.addRoutes({             '艺术家':新艺术家成员(背景),             '俱乐部':新的ClubsComponent(上下文)         });         controller.start();

我需要以编程方式导航到'club'这样的组件。具体的语法是什么,请

1 个答案:

答案 0 :(得分:0)

您可以看到如何在列表视图中导航到示例代码中的详细信息视图:

https://github.com/ectechno/boilerplatejs/blob/master/src/modules/sampleModule2/employeeList/viewmodel.js

以编程方式导航的方法调用是:

Boiler.UrlController.goTo("artists");