Iron Router Multiple Data Context with Meteor
Here’s how to do it: Router.route(‘/things’, { name: ‘things’, waitOn: function () { return [this.subscribe(‘thing’),this.subscribe(‘thinga’)]; }, data: function () { […]
Here’s how to do it: Router.route(‘/things’, { name: ‘things’, waitOn: function () { return [this.subscribe(‘thing’),this.subscribe(‘thinga’)]; }, data: function () { […]
This is a good tutorial on how to effectively use Iron Router for Meteor. https://www.manuel-schoebel.com/blog/iron-router-tutorial/
Router.route(‘/search/:location?/:keyword?’) Add an interogration mark after the parameter which you designate as optional. It’s that simple.
You must be logged in to post a comment.