Just starting off with Meteor and Router. From what I can see in the documentation Meteor.Router.to is quite simple, eg it doesn't pass other variables, jst straight routing to another resource:
Meteor.Router.to('raceAdd');
My raceAdd Meteor.Router.add (in routing.js) looks like this:
'/race/:_id/add': {
to: 'raceAdd',
and: function(id) { Session.set('currentSeriesId', id); }
Of course the ID doesn't get passed. What's the syntax for passing an ID using Meteor.Router.to?
Just starting off with Meteor and Router. From what I can see in the documentation Meteor.Router.to is quite simple, eg it doesn't pass other variables, jst straight routing to another resource:
My raceAdd Meteor.Router.add (in routing.js) looks like this:
Of course the ID doesn't get passed. What's the syntax for passing an ID using Meteor.Router.to?