Files
makemeahanzi/client/client.js
2015-08-27 00:57:29 -04:00

14 lines
249 B
JavaScript

Session.setDefault('counter', 0);
Template.hello.helpers({
counter: function () {
return Session.get('counter');
}
});
Template.hello.events({
'click button': function () {
Session.set('counter', Session.get('counter') + 1);
}
});