2
我想知道是否有人有这样的工作:BatmanJS:深度嵌套的路线
@resources 'projects', ->
@resources 'tables', ->
@resources 'items'
与相应的视图内容,如:
%a{"data-bind" => "table.name", "data-route" => "routes.projects[project].tables[table]"}
%div{"data-foreach-item" => "project.table.items"}
%p{"data-bind" => item.name"}
%a.btn{"data-route" => "routes.projects[project].tables[table].items[item]"} View details »
这里的问题是与链接标签:
Uncaught DevelopmentError: Couldn't find a route for the name items!
但p标签中项目的名称显示正确。我的路线有问题。有没有人在BatmanJS有多个嵌套路线的想法?