【发布时间】:2015-11-24 20:41:02
【问题描述】:
我在 Meteor 中有这个 html 文件
{{#if thevalue}}
{{> one}}
{{else}}
{{> two}}
{{/if}}
还有这个助手
'thevalue': Session.get('thevalue') //returns true or false
我的问题是,当 Session-Value 更改时,空格键中的 if/else-Bracktes 不会随之更改。我认为 Session-Values 是被动的……但也许我对它的工作原理有某种误解。
【问题讨论】: