Questions tagged [iron-router]

A Meteor smart package for client and server side routing in Meteor.

Iron Router is a routing package for Meteor. It makes single page apps.

IR takes control of your tag, rendering templates based on the user's current URL. It also helps you set up subscriptions per-route and much more.

Iron Router works with Meteor 0.8.0 and above.

More information available here

1657 questions
0
votes
1 answer

Meteor: Render template inside a template

I have a list of names on 'postlist' template. These are 'usernames' of the person who created the post. I have created a href link so that when a user clicks on the name, they are routed/directed to a new template 'viewpost' and able to view the…
meteorBuzz
  • 3,110
  • 5
  • 33
  • 60
0
votes
1 answer

meteor client async pattern / how to implement a waitOn for a list of subscriptions w callbacks

for various reasons I'm writing an app that doesn't use IronRouter, but has to implement some similar logic. One is waiting for a list of subscriptions to be ready. Since this is an async call client side in meteor, what are some techniques for…
dcsan
  • 11,333
  • 15
  • 77
  • 118
0
votes
1 answer

Iron Router Package issue in Meteor?

I need to know about the usage of iron router packae.I am using the latest version of meteor. Issue : i am using Router.go('hello'); Router.go working fine.But the problem is append to the hellotemplate data to the already existing one. Please see…
Usha Kommuri
  • 71
  • 1
  • 11
0
votes
1 answer

Iron router: call to Meteor.user() from router controller returns error

In Iron router path controller I'm trying to load different templates depending on user login status like this: Router.map(function() { this.route('start', { path: '/', controller: StartController }); }) StartController =…
0
votes
2 answers

MeteorJS iron-router pathFor issue

For some reason the pathFor function is not working when I have vars in my path. I have it working for a different controller and route but not this one. I'm not sure why and trying to better understand how the pathFor function works. My route…
Almog
  • 2,639
  • 6
  • 30
  • 59
0
votes
2 answers

Meteor Subscribe and Publish not returning data

I have the following pub in my Meteor app and sub in my iron router, however for the data function I'm not getting anything back, if I change my publish to topics and not public topics then it's fine. But that can't be correct as then have the same…
Almog
  • 2,639
  • 6
  • 30
  • 59
0
votes
1 answer

How to set querystring or parameters dynamically with iron-router?

I've seen this thread on how to append/modify query parameters without duplicating, but I can't make it work. I have a page in my Meteor application that lists items and allows filtering. I would like the filtering to be URL-based, so every change…
neo post modern
  • 2,262
  • 18
  • 30
0
votes
1 answer

Iron Router: Routes not working if placed inside "if (Meteor.isClient)"

I am using iron:router@1.0.0-pre3 with meteor 9.3.1. Template code: ironman