Angularjs复选框NG重复检查 [英] Angularjs checkbox checked in ng-repeat
本文介绍了Angularjs复选框NG重复检查的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
重复以示与框复选框为选中如果值是true和unchecked如果是假的。我的code是
repeat to show the checkbox with box as checked if value is true and unchecked if it is false. My code is
<tr ng-repeat="aa in allcheckboxes">
<input type="checkbox" ng-model="item.sticky" ng-show="{{aa.allowoption}}">
</div>
</tr>
我试图用NG-显示它没有工作做。你能告诉我怎样才能显示复选框检查时aa.allowoption是真实的,取消选中FLASE。
谢谢
I tried to do it using ng-show it didnt work. Can you please tell me how I can show the checkbox checked for when aa.allowoption is true and unchecked for flase. Thanks
推荐答案
我相信你正在寻找NG-检查:
I believe you are looking for ng-checked:
<INPUT ng-checked="{{aa.allowoption}}">
快乐编码:)
这篇关于Angularjs复选框NG重复检查的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文