Tutorial by Examples

Meteor.call(name, [arg1, arg2...], [asyncCallback]) (1) name String (2) Name of method to invoke (3) arg1, arg2... EJSON-able Object [Optional] (4) asyncCallback Function [Optional] On one hand, you can do : (via Session variable, or via ReactiveVar) var syncCall = Meteor.call("my...
Server side Meteor.methods({ getData() { return 'Hello, world!'; } }); Client side <template name="someData"> {{#if someData}} <p>{{someData}}</p> {{else}} <p>Loading...</p> {{/if}} </template> Template.someData.on...
Server side Meteor.methods({ getData() { return 'Hello, world!'; } }); Client side <template name="someData"> {{#if someData}} <p>{{someData}}</p> {{else}} <p>Loading...</p> {{/if}} </template> Template.someData.on...

Page 1 of 1