Reactive data, template rerender


#1

I am loading a template with the following code and attempting to have the user refresh the template’s data via event handler. Currently the template does not rerender when the items cursor is refreshed. What is the proper way to refresh this var and trigger a reactive computation?

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({ new query })

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