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

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -