Template Event Maps in Meteor

With Meteor you deal with event handling using event maps. Here's a snippet to define an event map scoped to a template.

Template.myTemplate.events({
  'click #myEl': function(evt, tpl) {
    evt.preventDefault();
    // do stuff
  }
});
✖ Clear

🕵 Search Results

🔎 Searching...