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# - SharpDX Toolkit models rendering inside out -

c# - ajax - How to receive data both html and json from server? -