标签: angularjs angularjs-ng-repeat
在视图中添加Angular函数的正确方法是什么?例如:
<div ng-repeat="i in items" (how to fire function and pass i) allItems(i)">
我已完成<div ng-repeat="i in items" ng-if="allItems(i)">,但这对我来说似乎不对。
<div ng-repeat="i in items" ng-if="allItems(i)">
是<div ng-repeat="i in items" ng-init="allItems(i)">
<div ng-repeat="i in items" ng-init="allItems(i)">