How to get Meteor.Call to return value for template?

后端 未结 4 1449
情歌与酒
情歌与酒 2020-12-02 12:11

I\'ve tried to understand this post regarding this concept, however, I\'m failing to get it. I have the following simple setup:

/server/test.js
Meteor.method         


        
4条回答
  •  猫巷女王i
    2020-12-02 13:04

    You can get the return value of a Meteor method for use in a template by using a reactive variable. Check out the working demonstration on Meteorpad

提交回复
热议问题