My issue involves 2 nested ng-repeat loops and a boolean variable. The goal is to hide the loading div once all content is rendered, but currently the loading div disappears before that happens. The boolean variable is dependent on a callback function that fetches all the necessary data.
<tr ng-repeat="package in packages track by $index">
<td> {{ pack.Name }}</td>
<td>
<select ng-hide="package.spinStart" class="form-control" ng-model="package.selectedVersion">
<option ng-repeat="pack in package.allPackageVersions track by $index"
value="{{pack.Version}}"
ng-hide="pack.shouldHide"
ng-disabled="!expertModeOn && pack.shouldDissable"
ng-style="!expertModeOn && pack.shouldDissable && {'color':'#ddd'}">
{{pack.NuGetPackageId}} | {{pack.Version}} | {{pack.Published}}
</option>
</select>
I am looking for a way to call the function only after both nested loops have finished executing. I have experimented with using $watch statements and directives without success. Any suggestions are appreciated!