iron-router Questions

3

Solved

Is it possible to publish just the count for a collection to the user? I want to display the total count on the homepage, but not pass all the data to the user. This is what I tried but it does not...
Alcalde asked 14/1, 2015 at 16:40

4

My app have multiple layouts for different needs, and I want to choose it dynamically. For example depending of GET params, or if user logged in. How can i do this?
Presumptuous asked 26/2, 2014 at 9:18

3

Solved

I'm using Meteor with AutoForm & Iron Router. I have an autoform for inserting a data, and I want to redirect to the page of the data I added after a successful insert. How should I do it? He...
Continuo asked 27/4, 2015 at 18:54

3

I'm having trouble getting Iron Router and Spiderable working together nicely in my Meteor.js app. If I test a url with ?_escaped_fragment_= whilst running on my localhost it all works correctly bu...
Mashhad asked 25/11, 2014 at 19:55

5

Solved

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 a...
Acoustician asked 1/1, 2015 at 19:54

2

How can I make Iron:router re-render a template? I have this html: <head> </head> <body> </body> <template name="mainLayout"> <a href="{{pathFor route='list'}}...
Tetreault asked 17/11, 2014 at 10:41

3

Solved

I have a simple route with a parameter: this.route('article', { path: '/article/:_id', data: function() { return Articles.findOne(this.params._id); } }); I would like to have use the pathFor ...
Suomi asked 25/8, 2013 at 1:31

2

I want to serve a static HTML file from MeteorJS's public folder (as is possible with Rails and Express). The reason I'm doing this is because I have one template for the dynamic "admin" part of my...
Blastocyst asked 26/5, 2014 at 13:44

5

Solved

The problem I'm currently experiencing is, that I want to be able to execute only specific scripts and CSS files, because if executed on a wrong page, it produces errors in the browser console. I'...
Hipolitohipp asked 30/8, 2013 at 19:42

8

Solved

I am trying to get the query parameters in the url. There doesn't seem to be an easy way to do this... which leaves me with the feeling that I must have missed a something in the doc.
Squally asked 14/4, 2014 at 1:39

4

Solved

Meteor Router.go() doesn't work. It just flash a new url for few milliseconds in the browser, and the page didn't switch. Sorry I can't find any clue how this wired thing happen..! Template.Post....
Pronucleus asked 25/5, 2015 at 20:22

3

Solved

My code was working fine until last night and suddenly I am getting this error and routes are not working at all. middleware_stack.js:31Uncaught Error: Handler with name 'route' already exists. ...
Phthalein asked 16/3, 2016 at 9:37

3

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 Mete...
Noisemaker asked 1/2, 2015 at 11:8

2

Solved

I installed the Iron Meteor framework using the Curl package manager for a group class project. The group has since decided to use another framework. I would like to purge the Iron Meteor framework...
Abirritant asked 6/3, 2016 at 16:33

5

I have a (client-side) router in a Meteor app, and links using the {{pathFor}} helper. I am setting a dirty flag in the Session when the user changes a form field, and I want to trigger a warning ...
Grazier asked 23/6, 2014 at 14:0

4

Solved

I was wondering if someone would be kind enough to provide a meteorpad or code example of using one of the methods listed above properly in Meteor (with iron:router). I'm struggling to understand h...
Dannadannel asked 12/1, 2015 at 17:44

2

Solved

I have a number of posts that I want to display inside of a carousel. For the carousel, I use OwlCarousel . <div class="owl-carousel" id="featured-carousel"> {{#each featuredPosts}} <d...
Livery asked 17/8, 2014 at 22:2

4

I'm noticing that every time Meteor/Iron Router changes routes, the entire page gets refreshed. Why is this happening and how can I prevent it? The way I have routes setup is something like this ...
Methanol asked 29/12, 2014 at 12:54

2

I have a Meteor app and I'm using the iron:router package. Both when I deploy to meteor.com and when I'm developing locally, an iron router splash page shows up on the page with the line "Organize ...
Silverts asked 17/4, 2015 at 6:54

4

Solved

What can I use in a template to figure out the route name that is associated with the route that I am currently on? For example if I configured a route like so in iron-router this.route('quick', ...
Mote asked 6/3, 2014 at 1:36

2

Solved

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...
Arboretum asked 30/10, 2015 at 17:18

3

Solved

How to best set the HTML title when using iron-router? Here's what I'd like to do: <template name="layout"> <head><title>{{KAZOOM}}</title></head> <body> {{&...
Bleachers asked 9/11, 2013 at 20:28

3

Solved

I have homepage, contact page, and several other product related pages in my app. The goal is to apply a background image to ONLY specifc routes: /homepage and /contact. If user navigates away fro...
Intramundane asked 22/8, 2014 at 22:14

1

I am working on a admin and client portal in Meteor JS using Iron:Router. I know i can create a route using: this.route('tasks',{path:'/projects', layoutTemplate: 'adminLayout'}); But is it pos...
Socalled asked 12/10, 2015 at 6:22

1

Solved

Thing is I want to check if the user is is logged in via Meteor.user() within onBeforeAction in my routes. Problem is, after a page reload Meteor.user() returns undefined for a split second before ...
Fluviomarine asked 15/8, 2015 at 12:52

© 2022 - 2024 — McMap. All rights reserved.