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
太棒了!我很高興其中一個工作。 –