In my Meteor app, I'm trying to pass data from my Iron Router controller to a template that's a partial in my app. How do I activate a route without changing the path? I don't want to switch pages, only render the partial with my data (if that makes sense).
Here's how the app works:
Right now, the route is activated when I click a dropdown link in my navbar
Template.navbar.events
'click #threads-link': (event)->
Router.go 'allThreads'
This renders the template with my data as long as I have a path in my route. But since I don't want the path to change, I tried leaving the path--and then the template doesn't retrieve the data from my controller!
Router.map ->
@route "allThreads",
controller: ThreadsController
Do you know how to get my template partial to access the data in the controller without changing the path? Thanks in advance!