angularjs怎么设置动态改变checkbox值
1个回答
展开全部
bel data-ng-repeat="selectedTag in selectedTags">
14 (({{selectedTag}}))
15 </label>
16 <hr>
17 <div data-ng-repeat="category in tagcategories">
18 <div>{{ category.name }}</div>
19 <div data-ng-repeat="tag in category.tags">
20 <div>
21 <input type="checkbox" id={{tag.id}} name="{{tag.name}}" ng-checked="isSelected(tag.id)" ng-click="updateSelection($event,tag.id)">
22 {{ tag.name }}
23 </div>
24 </div>
25 <hr>
14 (({{selectedTag}}))
15 </label>
16 <hr>
17 <div data-ng-repeat="category in tagcategories">
18 <div>{{ category.name }}</div>
19 <div data-ng-repeat="tag in category.tags">
20 <div>
21 <input type="checkbox" id={{tag.id}} name="{{tag.name}}" ng-checked="isSelected(tag.id)" ng-click="updateSelection($event,tag.id)">
22 {{ tag.name }}
23 </div>
24 </div>
25 <hr>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询