I am trying to capture the modal opening / closing of the bootstrap event in meteor js to perform some custom checks. I know how to do this in jquery:
$('#videoCallModal').on('shown.bs.modal', function () {
but since I also want to pass the context (this object), I want to do this in Template.template.events.
I tried something like, but the function was not called:
Template.videoCall.events = { 'on #videoCallModal shown.bs.modal': function(e){ e.preventDefault(); console.log("modal open", this); } }
Is there any other way to capture modal closing / opening in meteor js
source share