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
11
votes
2 answers

How to wait on http calls in Iron Router’s onBeforeAction?

I want to create a preloading script that performs a number of async functions to download external content. I'm pretty close here, but I haven't quite figured out how to to defer calling this.next() in my onBeforeAction function. In the code below…
danSiebes
  • 374
  • 1
  • 12
11
votes
3 answers

Meteor iron-router splash screen error on deploy only

I'm using Meteor 1.0.3.1 on my local machine, and I'm deploying with node v0.10.36. However, the deploy machine only ever displays the iron-router splash screen... "iron:router" "Organize your Meteor application" ... There are several other stacks…
JD Brinton
  • 111
  • 4
11
votes
4 answers

Passing query parameters using Router.go in iron router

I am trying to pass query parameters in Router.go like below: var filter = 'abc'; var path = Router.current() && Router.current().path; Router.go(path, {query: {filter: filter}}); But this does not change the url, it stills loads current path…
Aashu Agarwal
  • 173
  • 1
  • 2
  • 8
11
votes
4 answers

meteorjs iron-router waitOn and using as data on rendered

I try to get the returned data in my Template.rendered function. The current code is: this.route('editCat', { layoutTemplate : 'layoutCol2Left', template : 'modCategoriesEdit', path : '/mod/categories/edit/:_id', yieldTemplates :…
TJR
  • 6,307
  • 10
  • 38
  • 64
11
votes
2 answers

Yield Templates with meteor and iron router

I am using the new blaze-integration branch of IR and have made the necessary changes for an existing application. I have in one of my templates a yield region:
{{> yield region='signup-detail'}}
I would like to set this region…
Warz
  • 7,386
  • 14
  • 68
  • 120
10
votes
5 answers

Authentication on Server side routes in Meteor

What is the best way (most secure and easiest) to authenticate a user for a server side route? Software/Versions I'm using the latest Iron Router 1.* and Meteor 1.* and to begin, I'm just using accounts-password. Reference code I have a simple…
Aaron
  • 3,068
  • 2
  • 21
  • 44
10
votes
2 answers

iron-router waitOn Meteor.user()

I would use Meteor.user() in data iron-router, but this is undefined at start... I'm trying with: waitOn: function() { return curretUserHandle; }, data: function() { // access to Meteor.user().username, give me undefined [...] var…
elbowz
  • 557
  • 1
  • 4
  • 19
10
votes
4 answers

IronRouter extending data option on route controller

Is there a way to extend the data option when using IronRouter and the RouteController, It seems like it gets overridden when I inherit from a super controller, the child controller doesn't extend the defined data properties. I have had similiar…
Warz
  • 7,386
  • 14
  • 68
  • 120
10
votes
2 answers

Multiple subscriptions in iron router

I have been working on an application using a comment function. That results in having to subscribe to both a collection which the comments are made on and the comments collection itself. Now it looks like this: