Skip to content

Instantly share code, notes, and snippets.

@developeron29
Last active December 21, 2015 15:19

Revisions

  1. developeron29 revised this gist Aug 24, 2013. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions test.js
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    collection = new Meteor.Collection('collection');
    if (Meteor.isClient) {
    Template.hello.greeting = function () {
    return "Welcome to testapp.";
  2. developeron29 created this gist Aug 24, 2013.
    19 changes: 19 additions & 0 deletions test.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    if (Meteor.isClient) {
    Template.hello.greeting = function () {
    return "Welcome to testapp.";
    };

    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
    });
    }