debugging - Using console to access Meteor Template.name.helpers functions -


in meteor application, suppose have following template:

template.templatename.helpers({   helper1: function () {     alert("helper function called")   } } 

how call helper1 function browser console?


edit: 1 solution:

template.templatename.__helpers[" helper1"]()  

is there more orthodox way?


Comments

Popular posts from this blog

javascript - Can Piwik report referrer in real time? -

asp.net - Google Drive Access: At least one client secrets (Installed or Web) should be set -

excel vba add hyperlink to shape in group -