【发布时间】:2015-03-19 21:43:31
【问题描述】:
刚开始玩流星,我正在尝试使用iron-router 进行路由。这是我的数据结构:
team
_id
name
tags:[{name,counter}]
这是我在模板
中尝试使用的链接{{#each team.tags}}
<a href="{{ pathFor 'team' _id=../team._id query='search='+this.name }}">{{this.name}} <span class="count-list">{{this.counter}}</span></a>
{{/each}}
而我的路由器有:
route('/team/:_id') // And I get the search through the GET property... this.params.query
但它不喜欢query='search='+this.name,我怎样才能使它工作?
【问题讨论】:
标签: javascript node.js meteor url-routing