0
我想实现这个路线:流星铁路由器session.get不起作用
@route "buildingSpaceTenant",
path: "/buildings/:_building_id/spaces/:_space_id/tenants/:_id/communications"
template: "tenant"
yieldTemplates: {
Session.get("current_tenant_subtemplate"): {to: "subTemplate"}
}
但显然我不能使用session对象这种方式。
<runJavaScript-30>:148:11: client/routes/tenantsRoute.coffee:44: unexpected . (compiling client/routes/tenantsRoute.coffee) (at handler)
什么是正确的方法?
我确认,目前,您无法将函数关联到yieldtemplate。但是你的解决方法可以完成这项工作。谢谢! – ndemoreau
太棒了!我很高兴其中一个工作。 –