template.subscribe

Client

template.subscribe(name, [arg1, arg2...], [options])

A version of Meteor.subscribe that is stopped when the template is destroyed.

Arguments

name String

Name of the subscription. Matches the name of the server's publish() call.

arg1, arg2... Any

Optional arguments passed to publisher function on server.

Options

onReady Function

Passed to Meteor.subscribe.

onStop Function

Passed to Meteor.subscribe.

connection DDP Connection

The connection on which to make the subscription.

doc_Meteor
2016-05-29 17:26:01
Comments
Leave a Comment

Please login to continue.