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

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
  • 1
  • 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
  • 35,071
  • 77
  • 215
  • 324
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,482
  • 2
  • 17
  • 35
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…
tadasajon
  • 14,276
  • 29
  • 92
  • 144
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
  • 3,301
  • 4
  • 27
  • 53
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
  • 133
  • 2
  • 12
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
  • 353
  • 2
  • 7
  • 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,217
  • 2
  • 21
  • 43
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
  • 7,317
  • 9
  • 41
  • 65
0
votes
3 answers

what is @params in Iron:router

with meteor's IronRouter, I'm trying to use the this.params object elsewhere, but confused as to what it is. It seems to be a zero length array, that is actually an object with named methods after the path components. # coffee @route 'magnets', …
dcsan
  • 11,333
  • 15
  • 77
  • 118
0
votes
2 answers

Meteor: Iron-router render home page only after successful login

I have the following routes and only wish to perform Router.go('home'); AFTER a successful login. Router.configure({ layoutTemplate: 'Layout'}); Router.map(function(){ this.route('login', {path: '/'}); this.route('home', {path:…
meteorBuzz
  • 3,110
  • 5
  • 33
  • 60
0
votes
1 answer

Do routes in Iron Router run on the client or the server

I have been working with Iron Router, and have been under the impression that the routes run on the server. But recently I was reading through the Accounts-Entry code and noticed that, although the routes are defined in "shared", the methods used…
CodeChimp
  • 8,016
  • 5
  • 41
  • 79
0
votes
0 answers

Meteor: How to show route data on the same url?

There is a collection of Posts. Creating a Link of each post on the home page. Need to show post specific data when a link is clicked. It works fine and show data on new url but don't do anything if Url is given as root /. HomePage.html
Himanshu Yadav
  • 13,315
  • 46
  • 162
  • 291
0
votes
1 answer

IronRouter pathFor - passing parameters from Template helper

I am using IronRouter in my project which has content in different languages. To display message codes I have used UI.registerHelper, as follows: UI.registerHelper('loadMessageCode', function(message) { //Logic in here to load string inside a…
matfin
  • 499
  • 4
  • 15
1 2 3
99
100