How to pass subscription to application layout (flowrouter)?o

I am subscribing to data with template level subscriptions, however I have those two routes where I would need the data in my current route to be available in the application layout. Some things worth trying are probably sessions and checking for route and then subscribing in the application layout. But maybe there’s an inbuilt meteor functionality for this to pass the same subscribed data to a second template?

It seems if I reference to template.subscribe instead of this.subscribe in the template it should subscribe the data for my application layout, right? I’m not sure how to reference to the template though. Just using the template name is not working. Template.applicationLayout.subscribe(‘bla’) is also not working.

May be you wanna try subs manager.

1 Like