angular.js - How to bind events to tags looped out by ng-repeat in Angular?
阿神
阿神 2017-06-05 11:10:09
0
1
723

You need to use ng-repeat to loop out the data sent from the background, and also bind events to this tag to operate on this data. Is there a perfect solution?

阿神
阿神

闭关修行中......

reply all(1)
过去多啦不再A梦
<li ng-repeat="a in datas" ng-click="event(a)">
datas是数据集合,event是事件,a是集合的每一个元素
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template