redress
redress

Reputation: 1449

Single view subscribes to multiple Meteor publishes onWait

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

Answers (1)

Sasikanth
Sasikanth

Reputation: 3043

waitOn:function(){  
return
  [
   Meteor.subscribe('first'),
   Meteor.subscribe('second')
  ]
}

Upvotes: 2

Related Questions