Skip to content

Instantly share code, notes, and snippets.

@arthursoares
Created December 8, 2015 18:18
Show Gist options
  • Save arthursoares/ec2ee1d7ffe5af417bd7 to your computer and use it in GitHub Desktop.
Save arthursoares/ec2ee1d7ffe5af417bd7 to your computer and use it in GitHub Desktop.
Template.sandbox.onCreated( function(){
console.log("o template foi criado");
});
Template.sandbox.onRendered(function() {
console.log("o template foi renderizado");
})
Template.sandbox.events({
'click #btn': function(e){
console.log("id btn foi clicado");
}
});
@lnmunhoz
Copy link

lnmunhoz commented Dec 8, 2015

Template.sandbox.onCreated(function () {
  console.log('o template foi criado');
});

Template.sandbox.onRendered(function () {
  console.log('o template foi renderizado');
});

Template.sandbox.events({
  'click #btn': function () {
    console.log('id btn foi clicado');
  }
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment