Skip to content

Instantly share code, notes, and snippets.

Last active August 29, 2015 14:14
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
DemocratieLAB Welcome Screen Updates reactively
Classes = new Mongo.Collection(‘classes’);
location: "Aa en Hunze",
schoolType: "Basisonderwijs",
route: "42",
active: true
<button data-action=continue
class="fade {{#if activeClass}}visible{{/if}}">ga verder
activeClass : function() {
// this is where the magic happens: whenever the result of this 'livequery' changes,
// the surrounding helper function is re-run automatically
return Classes.findOne({ active:true });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment