React

After reading this guide, you’ll know: What React is, and why you would consider using it with Meteor. How to install React in your Meteor application, and how to use it correctly. How to integrate React with Meteor’s realtime data layer. How to route in a React/Meteor application. Introduction React is a JavaScript library for building reactive user interfaces developed and distributed by the Facebook team. React is one of the three rendering libraries supported by Meteor; it is an alterativ

spacebars

spacebars Spacebars is a Meteor template language inspired by Handlebars. It shares some of the spirit and syntax of Handlebars, but it has been tailored to produce reactive Meteor templates when compiled.

Code style

After reading this article, you’ll know: Why it’s a good idea to have consistent code style Which style guide we recommend for JavaScript code How to set up ESLint to check code style automatically Style suggestions for Meteor-specific patterns, such as Methods, publications, and more Benefits of consistent style Countless hours have been spent by developers throughout the years arguing over single vs. double quotes, where to put brackets, how many spaces to type, and all kinds of other cosme

this.error

Server this.error(error) Source Call inside the publish function. Stops this client's subscription, triggering a call on the client to the onStop callback passed to Meteor.subscribe, if any. If error is not a Meteor.Error, it will be sanitized. Arguments error Error The error to pass to the client.

cursor.observeChanges

Anywhere cursor.observeChanges(callbacks) Source Watch a query. Receive callbacks as the result set changes. Only the differences between the old and new documents are passed to the callbacks. Arguments callbacks Object Functions to call to deliver the result set as it changes

this.connection

Server this.connection Source Access inside a method invocation. The connection that this method was received on. null if the method is not associated with a connection, eg. a server initiated method call.

Meteor.setInterval

Anywhere Meteor.setInterval(func, delay) import { Meteor } from 'meteor/meteor' Source Call a function repeatedly, with a time delay between calls. Arguments func Function The function to run delay Number Number of milliseconds to wait between each function call.

Meteor.disconnect

Client Meteor.disconnect() import { Meteor } from 'meteor/meteor' Source Disconnect the client from the server.

Angular

Angular is a frontend rendering library that is officially supported by Meteor. The best place to read about how to use both Angular 1 and Angular 2 in Meteor is the Angular-Meteor site.

appcache

appcache The appcache package stores the static parts of a Meteor application (the client side Javascript, HTML, CSS, and images) in the browser's application cache. To enable caching simply add the appcache package to your project. Once a user has visited a Meteor application for the first time and the application has been cached, on subsequent visits the web page loads faster because the browser can load the application out of the cache without contacting the server first. Hot code pushes ar