Reputation: 1449
How do I return two Meteor.subscribe()
methods in my waitOn
method? I am trying to render two collections' publications in a single view. I currently have
waitOn: function(){
return Meteor.subscribe('lists');
//return Meteor.subscribe('details');
}
But I obviously can't return twice.
Upvotes: 0
Views: 109
Reputation: 3043
waitOn:function(){
return
[
Meteor.subscribe('first'),
Meteor.subscribe('second')
]
}
Upvotes: 2