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 -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -