Should I set my routes from router.js or use Template-Level Subscriptions?


#1

I have been using the router.js file for all routing but, I have problems like having to use a template helper to find all but one of my subscriptions per route in minimongo; as if only one of the subscription is executed on the client side. Is routing using Template-Level Subscriptions better? I it possible to create controllers when using Template-Level Subscriptions.


#2

I am not sure your question is clear enough, maybe you should rephrase it.


#3

Not a big fan of route-level subscriptions, You should take a look at the Subscription Manager!


#4

Check out this article on placing subscriptions in the templates. In my opinion placing subs in the router works best for small apps and template level subs work better on large apps. Then your router only does routing.

https://www.discovermeteor.com/blog/template-level-subscriptions/