Angularjs - detect when ng-repeat inside ng-repeat finish repeating -
i using angularjs 4.2 website.
i detect when ng-repeat finish repeating using directive if use ng-repeat inside ng-repeat, can not scope repeat outside check $last.
any idea problem.
simple answer use $parent.$last check parent's last iteration
<div ng-repeat="item in outerlist"> <div ng-repeat="item in innerlist"> <span ng-if="$last && $parent.$last"> last iteration of both list </span> </div> </div>
Comments
Post a Comment