initial commit

This commit is contained in:
Edin Dazdarevic
2015-05-27 18:51:07 +02:00
commit 64ba9bb670
4 changed files with 46 additions and 0 deletions

23
confighub.js Normal file
View File

@@ -0,0 +1,23 @@
if (Meteor.isClient) {
// counter starts at 0
Session.setDefault('counter', 0);
Template.hello.helpers({
counter: function () {
return Session.get('counter');
}
});
Template.hello.events({
'click button': function () {
// increment the counter when button is clicked
Session.set('counter', Session.get('counter') + 1);
}
});
}
if (Meteor.isServer) {
Meteor.startup(function () {
// code to run on server at startup
});
}