Skip to content

Instantly share code, notes, and snippets.

@michaltakac
Last active October 16, 2015 22:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaltakac/9d5ba0fadbb261a9ebdb to your computer and use it in GitHub Desktop.
Save michaltakac/9d5ba0fadbb261a9ebdb to your computer and use it in GitHub Desktop.
Braintree demo - dashboard.js (v1)
Template.dashboard.onCreated(function() {
var instance = this;
instance.autorun(function() {
instance.subscribe('items');
});
});
Template.dashboard.helpers({
items: function(){
return Items.find();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment