Meteor Body Events
Template.body.events working
Origin
This package is exactly the same as gwendall:body-events
except that its dependencies are updated for Meteor 2.0.
Forked from micktaiwan/meteor-body-events
which in turn was forked from gwendall/meteor-body-events
.
Installation
meteor add imajus:body-events
Methods
1Template.body.events({ 2 "click .btn": function(e, data, tpl) { 3 // e -> jquery event 4 // data -> Blaze data context of the DOM element triggering the event handler 5 // tpl -> the parent template instance for the target element 6 } 7})