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

Export CSV/XLS from Meteor application

What is the simplest way to export data to CSV from Meteor? How to generate CSV? What I've tried Add Npm package: $ meteor add meteorhacks:npm Add Node.js CSV suite: // packages.json { "csv": "0.4.0", } Add Iron Router package: $ meteor add…
roman
  • 101
  • 1
  • 3
0
votes
1 answer

Exception in Meteor UI: Error: Illegal HTML attribute name: \

I'm making a Meteor JS app and I keep getting the following error: Exception in Meteor UI: Error: Illegal HTML attribute name: \ at extendAttrs (http://localhost:3000/packages/htmljs.js?a0a9082010d25b3fb44e0f56bdd0a7b4e6bbeb93:322:13) at…
0
votes
3 answers

Iron router: Don't re-render page if wait on changes

I subscribe to a collection using iron router's waitOn functionality. This subscription is dependent on a Session variable.When the Session variable changes, the subscription should be renewed using the new value of the Session variable. This works…
tomet
  • 2,416
  • 6
  • 30
  • 45
0
votes
1 answer

Iron Router: Pass data to client via meteor method

My application uses iron router: When a user hits a certain route that contains a wildcard, I would like to use the value of the wildcard to call a meteor method and have its return value be used to set the data context for the…
tomet
  • 2,416
  • 6
  • 30
  • 45
0
votes
1 answer

Meteor template data context not available in template.created upon refresh

I use the template data context inside a template's created function. Template.temp.created = function() { console.log('this.data'); }; When I go to the page normally--i.e. click the link to the page--I see the console log the correct data object.…
Brian
  • 3,453
  • 2
  • 27
  • 39
0
votes
1 answer

mrt:iron-router-progress in Meteor 0.9.1.1

at first I have to confess that I'm a raw recruit in Meteor. Yesterday I added mrt:iron-router-progress to my meteor project because I wanted to simply add a background picture to myApp. But my Problem is that it doesn't yield into this…
0
votes
2 answers

How to show data from mongoDB with ObjectID

i have an "back end" application which write in MongoDb (in database i have _id: with ObjectId("13f6ea...002")) i use meteor app to show information. Everything was good i displays list of information with {{#each}}. But when i wanted show one…
yan
  • 13
  • 1
  • 4
0
votes
2 answers

What triggers an onAfterAction in IronRouter other than a route change?

I'm having trouble debugging an onAfterAction that I don't want to run. It happens when I click a certain div. Router.go is not being called (verified with debugger; in the iron router code), and the URL is not changing. I can't find anything in my…
Loren
  • 13,903
  • 8
  • 48
  • 79
0
votes
1 answer

iron-router error in meteor.js project, old template's data get re-called

I am developing a meteor.js application, and I am having a strange error. I wrote my code below and as you can see I have a template called groupsmain which shows list of different groups, and when I click one of them, I am going to groupdetail…
user2858924
  • 433
  • 5
  • 15
0
votes
1 answer

One subscription for multiple routes

If I have one subscription that will be used for multiple routes, should I call it each time in every controller's waitOn or is there a better place?
ilyo
  • 35,851
  • 46
  • 106
  • 159
0
votes
2 answers

Iron Router template not registered on redirect

I have this simple check if user is logged in and if not - redirect to register page Router.map(function () { this.route('home', { path: '/', onBeforeAction: function (pause) { if (!Meteor.user()) { this.render('register'); …
ilyo
  • 35,851
  • 46
  • 106
  • 159
0
votes
0 answers

Overwriting RouteController settings

I have a route controller like so: StudentPageFeeds = RouteController.extend({ waitOn: function() { Meteor.subscribe('headers', this.route.name) }, data: function() { return Headers.findOne({}); } }); And I have a…
Allen
  • 350
  • 2
  • 13
0
votes
2 answers

Error while installing Iron Meteor on Windows7/Windows8

I am trying to install iron-router on Windows but i am unable to install. Below are the steps i tried Created packages folder in my project. Cloned iron -router(version 0.8.2) repo. Then ran meteor add iron-router My smart.json file looks like…
sri85
  • 337
  • 2
  • 19
0
votes
1 answer

iron-router with Meteor 0.9 packaging system

The readme file of iron-router states 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 released by mistake to…
Sander Garretsen
  • 1,683
  • 10
  • 19
0
votes
2 answers

Adding Iron-Router package to Meteor 0.6.4.1 in Windows 7

I'm running Meteor on my Win7. Since Meteorite isn't supported on Windows yet, I'm following the instructions mentioned in http://goo.gl/BWauOk. I configured my settings to bypass the proxy and I'm able to git clone the packages and dependencies…
inquisitive_one
  • 1,465
  • 7
  • 32
  • 56
1 2 3
99
100