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

1663 questions
0
votes
2 answers

How do I use the results of a subscription for additional subscriptions at the route level?

I have a template that displays documents from three different collections Cars, CarPaints, and CarPaintTypes. I know I need all these upfront at the Router level. The template will show a Car document, all the CarPaints that reference that Car,…
evolross
  • 475
  • 1
  • 5
  • 15
0
votes
0 answers

Meteor redirect on login with Iron Router - layout not changes

I have a layout for the login/signup process and a layout for the app itself, Welcome and App respectively. This is how I try to redirect between them: this.route('App', { path: '/', template: 'Home', layoutTemplate: 'App', …
ilyo
  • 33,469
  • 40
  • 99
  • 145
0
votes
0 answers

calling server side method on router in meteor

I've a route which says like /video/:_id/:slug now on this route I want to get the video url from the _id and now I want to scrap that url and I want to send this url as a source to video element in html I tried like below but it is not…
user1934044
  • 516
  • 5
  • 17
0
votes
1 answer

Iron Router: My Subscription Doesn't Work Inside waitOn

I have a simple subscription running in Iron Router. @route 'AdminEditor', path: '/admin/editor/:id?' controller: 'AdminController' template: 'AdminRoot' yieldTemplates: 'AdminEditor': { to: 'adminAside' } waitOn: -> return…
Julien Le Coupanec
  • 6,324
  • 3
  • 43
  • 56
0
votes
1 answer

Download File Link using iron-router version 1.0.0-pre2

I am using bootstrap-3, collection-fs and iron-router. I have successfully created a download button before, but since upgrading to iron-router version 1.0.0-pre2, I have not been able to successfully replicate the download button.
Nate
  • 1,855
  • 13
  • 27
0
votes
1 answer

Create Dynamic Templates and pathFor

Basically I have my "Home"-Template which shows two identically tables with different content. The tables on the Home-Template are showing just the latest five "orders" per table. With a click on the table header(h2 in Template "showLatestOrders"),…
peggel
  • 81
  • 8
0
votes
2 answers

Use dependant subscriptions in Iron-router WaitOn and use them in helper functions

When doing the following implementation , i get problems because it's look like the data is not available in client side: In The global configuration of Iron-router , i subscribe to "notifications" publication . Then i fetch the notifications, and i…
0
votes
1 answer

Does iron router async load template or load everything

May i know does iron router async load templates from server only when required or download everything in bundle at first page load.
cometta
  • 32,613
  • 72
  • 206
  • 316
0
votes
1 answer

How can I use a parameter other than the document id in an iron-router path

I currently have the below route and it works great. I want to change the path that is being used to a different id that is inside the same document (not a mongoDB generated id). How can I change this route to use a different id in the…
JoshJoe
  • 1,151
  • 12
  • 32
0
votes
0 answers

Meteor.js + iron-router: which version should I use and how should I install it?

So the iron-router github page says this: Latest Version: 0.8.2 IMPORTANT: Do not install versions 0.9.0 or 0.9.1 from Atmosphere. These versions are intended for the new Meteor packaging system available in Meteor v0.9.0. iron-router 0.9.x was…
jononomo
  • 12,340
  • 25
  • 77
  • 134
0
votes
1 answer

Meteor: Verify Email Link is Logging User Out

In my Meteor app, I have a signup form at /signup that requires a username, password, and email. Upon submission of this form, the user is automatically logged in to the site via Accounts.createUser() and an email verification message is sent to the…
Jon Cursi
  • 2,837
  • 3
  • 19
  • 48
0
votes
1 answer

How to render a dynamic layout and a static in the main content

I´m just starting with meteor coming from ember. What i have is a menu and the items get rendered into the maincontent layout. Now i would like to have a second menu in the maincontent layout. Example: I click on people in the navigation and get a…
Benjamin79
  • 83
  • 1
  • 9
0
votes
1 answer

Meteor app breaks after version 0.8.3

My app was working well with version 0.8.3, but I tried to update to version 0.9.2.2 because the terminal says this: => Errors prevented startup: While building the application: error: no such package: 'iron-router' error: no such package:…
swayziak
  • 343
  • 2
  • 6
  • 22
0
votes
1 answer

iron-router choose different subscriptions in waitOn function - Meteor

I want to decide based on a boolean attribute in a document (mode), which subscriptions the user gets, but I have problems with the design approach. If I use this.data() and a if clause in the waitOn function, I will get the 404 page rendered,…
user3475602
  • 1,167
  • 2
  • 18
  • 41
0
votes
1 answer

How to prevent last route's data from rendering in next template using Iron-Router?

How do I prevent the last template's data from displaying in the next template/route? I'm having the issue of the last route/template's data rendering in the next until the query is returned. Is this what waitOn is for? I've tried using waitOn,…
JohnAllen
  • 6,426
  • 9
  • 36
  • 60
1 2 3
99
100