iron-router Questions
2
Solved
In a Template Helper I get the current path from Iron.Router (iron:router) as follows:
Router.current().route.path()
This works fine, unless the route path does contain parameters (e.g. /client/...
Marcin asked 10/11, 2014 at 18:38
4
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 th...
Broderick asked 28/8, 2014 at 13:1
1
I have a collection with fields groupNumber and number:
groupNumber, number
=================
1, 1
1, 2
1, 3
1, 4
2, 1
2, 2
2, 3
2, 8
3, 4
3, 5
...
I can print the entire collection with
{{#eac...
Lenhart asked 2/7, 2015 at 18:56
2
Solved
I'm seeing strange behavior when trying to add pdf file generation.
The following code, on the if statement, throws:
both\routes.js
Router.onBeforeAction(function () { if (!Meteor.user() || Meteo...
Yonne asked 29/12, 2014 at 17:22
4
Solved
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 ...
Hoodoo asked 14/6, 2014 at 19:3
2
Solved
I am using iron-router, i have a route "models" which has a list of items. When the user clicks one of these items a new route "model" is used, the name of the selected item is passed as a param an...
Anselmo asked 9/5, 2015 at 13:0
1
Solved
I have an iron-router route for updating the data of a specific project:
Router.route('/project/:key/update', {
...
});
Each time the user navigates to an "edit project page" I want to focus th...
Dopp asked 27/4, 2015 at 22:58
1
Solved
In a Template Helper I get the current path from Iron.Router (iron:router) as follows:
Router.current().route.path(this);
This works fine, unless the route path does contain parameters (e.g. /cl...
Revolution asked 20/4, 2015 at 6:57
3
I just started working with iron router on meteor. I need to show an image on homepage. I was able to configure route for 'home' using the client side routing. For static files I tried to google an...
Erratic asked 24/1, 2014 at 19:51
3
Solved
It seems Deps.autorun is the way to go but Router.go doesn't seem to work within Deps.autorun.
Claycomb asked 6/4, 2014 at 21:44
4
Solved
I'm using the built in loginButtons options with Meteor and I would like to redirect after a user logs in. Using the built in web snippets means I can't use the callback with Meteor.loginwithPasswo...
Marionmarionette asked 23/1, 2014 at 17:57
5
Solved
I am fighting with the common need for redirecting a user to a login page if he is not logged-in (Meteor v0.8.0 on Windows 7).
There are several similar questions on stackoverflow, but no answer s...
Naturalist asked 2/5, 2014 at 13:38
2
Solved
If I'm currently at /foo, Router.go '/foo' does nothing. I would like /foo's action hooks and rendering to be redone. I know I could make a dependency, mention it in an action hook, and invalidate ...
Coquette asked 5/2, 2015 at 7:8
2
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:
<div>
{{> yield region='s...
Callipash asked 23/3, 2014 at 0:49
2
Solved
Currently, the only solutions I have found for animating between routes is just fade out the current page onBeforeAction and fade in the new page onAfterAction. But this is just lame.
I want to t...
Frady asked 13/9, 2014 at 2:23
1
Solved
I'm using the /private directory in Meteor 1.0.3 at the moment to store and serve up pdf documents to the browser.
As an example, I have a folder structure like so:
/application-name
/private
/...
Brazell asked 23/1, 2015 at 8:39
1
I am building part of an admin system in Meteor that lets admins add/edit other admins. I am using Meteor Accounts and Autoform, but I can't figure out how to handle it so the users are validated w...
Guileful asked 15/1, 2015 at 3:23
3
Solved
I'm having trouble configuring the waitOn portion of a route where one of the subscription's parameters is determined by the value from a doc that comes from a different subscription.
The collecti...
Vaunt asked 17/2, 2014 at 21:17
2
Solved
How can check, on server side route, if user is logged?
I would add check on 'before', but Metor.user() don't work here.
thanks in advance.
p.s. I have found How to get Meteor.user() to return o...
Adamec asked 26/11, 2013 at 14:19
2
Solved
I have a simple iron-router config in my /lib/router.coffee:
Router.configure
notFoundTemplate: "notFound"
Router.map ->
@route "app",
path: "/"
template: "app"
When entering on / it's w...
Chromomere asked 5/1, 2015 at 21:36
1
Solved
Forward
It seems that in Meteor, we cannot call a server side route to render a file to the page without some sort of work-around from our normal workflow, from what I've read about server side ro...
Bieber asked 31/12, 2014 at 0:32
4
I'm using Iron Router for my urls and I have this route:
this.route('regionEdit', {
path: '/region/:_id',
waitOn: function() {
return Meteor.subscribe('region', this.params._id);
},
data: fun...
Consolata asked 16/5, 2014 at 22:52
2
Solved
How do I implement a reactive breadcrumb with Meteor and iron-router?
Now I'm looking for the current path, triggered by a reactive session variable and then adding each link that corresponds to t...
Pitsaw asked 13/1, 2014 at 12:55
4
Solved
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/ca...
Dyedinthewool asked 10/5, 2014 at 0:14
3
Solved
When I hit a route that doesn't exist on my Meteor app that uses IR, I get a 200 response with an HTML that (when rendered on a browser) displays a js error on console saying that No route found fo...
Psychotic asked 18/11, 2014 at 18:23
© 2022 - 2024 — McMap. All rights reserved.