Open looshi opened 9 years ago
see if it's possible to add these type of Meteor events to the template at runtime.
Template.MyTemplate.events({ 'click button' : function(e){ // do something }, })
as we do with the helpers, the syntax for an event block can be simplified like :
events = { ' click div' : function(){ // do something } }
see if it's possible to add these type of Meteor events to the template at runtime.
Template.MyTemplate.events({ 'click button' : function(e){ // do something }, })