【发布时间】:2013-07-19 12:10:54
【问题描述】:
我正在尝试使用 ng-show,它只是在某些东西存在时显示它。
<span ng-show="comment">{{comment}}</span>
我在范围 comment="No" 中对此进行了测试,但它隐藏了它。当 comment="Yes" 显示它时,我很困惑为什么会这样,因为在 JavaScript 中我尝试 if (comment) 并且它有效......
【问题讨论】:
标签: javascript angularjs ng-show