请任何人解释如何做到在angularjs检查以下
Please anybody explain how to do below check in angularjs
<div ng-show="{{offset <= 10}}">Show Me</div>
如果我喜欢这个它打破了HTML运行它,我认为,由于&LT;比比较
If i run it like this it breaks the html, i think due to "<" than in comparison
不要使用 {{}}
取值:
<div ng-show="offset <= 10">Show Me</div>
考虑到NG-节目的前pression根据当前评估的范围,因此没有必要进行插值&ndash的;在 {{}}
秒。
您需要的 {{}}
■如果你想要做这样的事情:
You would need the {{}}
s if you wanted to do something like this:
<div>Offset is <= 10: {{offset <= 10}}</div>