Template instances

Template instances A template instance object represents an occurrence of a template in the document. It can be used to access the DOM and it can be assigned properties that persist as the template is reactively updated. Template instance objects are found as the value of this in the onCreated, onRendered, and onDestroyed template callbacks, and as an argument to event handlers. You can access the current template instance from helpers using Template.instance(). In addition to the properties a

Blaze

After reading this guide, you’ll know: How to use the Spacebars language to define templates rendered by the Blaze engine. Best practices for writing reusable components in Blaze. How the Blaze rendering engine works under the hood and some advanced techniques for using it. How to test Blaze templates. Blaze is Meteor’s built-in reactive rendering library. Usually, templates are written in Spacebars, a variant of Handlebars designed to take advantage of Tracker, Meteor’s reactivity system. Th

Meteor.clearInterval

Anywhere Meteor.clearInterval(id) import { Meteor } from 'meteor/meteor' Source Cancel a repeating function call scheduled by Meteor.setInterval. Arguments id Number The handle returned by Meteor.setInterval

Using Packages

After reading this article, you’ll know: About npm and Atmosphere, two JavaScript package systems you can use with Meteor How to use npm packages and deal with callback-based APIs How to use Atmosphere packages in your Meteor application Building an application completely from scratch is a tall order. This is one of the main reasons you might consider using Meteor in the first place - you can focus on writing the code that is specific to your app, instead of reinventing wheels like user login

meteor list

meteor list Lists all the packages that you have added to your project. For each package, lists the version that you are using. Lets you know if a newer version of that package is available.