vue-meteor-tracker
vue-meteor-tracker copied to clipboard
dynamic $subscribe name?
props: ['subscribeName'],
meteor: {
$subscribe: {
[this.subscribeName](){
return ........;
}
},
tableData(){
console.log(Posts.find({}).fetch());
},
},
This would be great
Looks like you could use the 5his.$subscribe api. Example from the readme:
mounted () {
// Subscribes to the 'threads' publication with two parameters
this.$subscribe('thread', ['new', 10])
}