我定义了以下路由器和模板。但是,当调用事件处理程序时,模板不会被重新呈现。我的印象是物品光标是反应性的;事件处理程序应如何更新此变量?
MyRouter = RouteController.extend
template: 'myTemplate'
subscriptions: Meteor.subscribe 'items'
items: Items.find {}
data: ->
items: @items()
Template.myTemplate.events
'click .someButton': (e) ->
Template.parentData().items = Items.find({ .. })

<!-- parent template -->
{{#each ../items}}
<div class='radio'>
<label>
<input type='radio' name='optionsRadios' id='{{this.id}}' value='{{this.id}}'>
{{this.text}}
</label>
</div>
{{/each}}
&#13;