iron router - Simple meteor template helper not rendering in blaze -
i can't access data template helper template. it's strange because have done 100x. here simple example. able on other route/template combinations have setup reason not on one.
my console empty , console.log('helper ran') never runs far can tell
in departmentbh1.html
<template name="departmentbh1"> <h1>wtf</h1> <h1>{{hospital}}</h1> </template> in departmentbh1.js
template.departmentbh1.helpers = ({ hospital: function() { console.log('helper ran'); return 'test'; } }); in router.js
router.route('/bh/departmentbh1', { name: 'departmentbh1' }); which renders without proper text helper
try this:
template.departmentbh1.helpers({ hospital: function() { console.log('helper ran'); return 'test'; } }); changed helpers = ({ helpers({

Comments
Post a Comment