I have the following ng-repeat that grabs data from a $http.post call and stores it into $scope.data.
<div ng-repeat="key in [] | range:data.pages">
    <div class="pageBackground" id="page_{{ (key+1) }}" ng-style="{'background-image':'url(/images/{{data.id}}/{{(key+1)}}.png)'}">
    <!-- some random stuff here -->
</div>
What normal happens is the .pageBackground class will load before the background image does on the screen. I'd like nothing to show up until the background-image is actually loaded but I haven't been able to figure that out.
Does anyone have any suggestions?