Skip to content
Advertisement

FlowRouter is not defined in individual templates

Using Meteor, I started with a default Meteor project with…

JavaScript

I added a route, in router.js, like so:

JavaScript

router.js is here:

JavaScript

The Group template is this:

JavaScript

And for user_group, I have this:

JavaScript

This results in:

JavaScript

I also do not have access to FlowRouter.go in my templates.

What am I missing?

Advertisement

Answer

You need to import FlowRouter in every js that actively uses it (in your example the Template):

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement