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

mysql - FireDac error 314 - but DLLs are in program directory -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -

java - How can I send the data from a imput type="file" to the controller? -