Meteor: Spacebars not updating on session-value change -


i have html-file in meteor

{{#if thevalue}}     {{> one}} {{else}}     {{> two}} {{/if}} 

and helper

'thevalue': session.get('thevalue') //returns true or false 

my problem when session-value changes, if/else-bracktes spacebars not change it. thought session-values reactive...but maybe have sort of misconception how works.

try write helper function so

'thevalue': function () {   return session.get('thevalue'); } 

see docs here more.


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

how to prompt save As Box in Excel Interlop c# MVC 4 -

xslt 1.0 - How to access or retrieve mets content of an item from another item? -