I have 2 ng-repeats in my code, and i would like to call a function when both of these ng-repeats have completed their loop. It's actually the same repeat twice but with a different filter applied. I need both of the repeats to be completed before I can get the correct height property of the body.
My code looks something like this
<ul>
<li ng-repeat="item in items|filter:{Type:'1'}>{{item.Name}}</li>
</ul>
<!-- some irrelevant code -->
<ul>
<li ng-repeat="item in items|filter:{Type:'2'}>{{item.Name}}</li>
</ul>
Is there a way to get this done using a directive?