【发布时间】:2013-08-17 18:17:50
【问题描述】:
我的路线定义如下
this.resource('projects', function() {
this.resource('project', { path: ':project_id'}, function() {
this.route('details');
this.route('members');
});
});
projects 显示项目列表。单击项目时,我会转换到 ProjectsIndexRoute 中的 project.details。但是模型没有设置为点击的项目。但是,如果我使用 linkTo 创建到 project.details 的链接,那么一切正常。
【问题讨论】: