Skip to content

meteor-utilities/onSubscribed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This package provides new onSubscribed and onDataChanged callbacks.

Install

meteor add utilities:onsubscribed

Usage

onSubscribed

Gets called whenever a template's subscriptions are done loading.

Template.myTemplate.onCreated(function () {
  this.subscribe("mySubscription");
});

Template.myTemplate.onSubscribed(function () {
  console.log("subscription done!");
});

onDataChanged

Gets called whenever a template's data context changes.

Template.myTemplate.onDataChanged(function () {
  console.log("data context changed!");
});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published