Skip to content

Instantly share code, notes, and snippets.

@abderrazak-bouadma
Created December 26, 2013 13:44
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 abderrazak-bouadma/8134013 to your computer and use it in GitHub Desktop.
Save abderrazak-bouadma/8134013 to your computer and use it in GitHub Desktop.
if (Meteor.isClient) {
Template.hello.greeting = function () {
return "Welcome to todo.";
};
Template.hello.events({
'click input' : function () {
// template data, if any, is available in 'this'
if (typeof console !== 'undefined')
console.log("You pressed the button");
}
});
}
if (Meteor.isServer) {
Meteor.startup(function () {
// code to run on server at startup
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment