I want to show more than two different images in ng-repeat


#1

i want to use this code for showing more than one different images in ng-repeat after 5 items.

HTML code:

<div  ng-repeat = "data in banner track by $index" ng-if="(($index +1) % 5)== 0 && $index !=0 && banners.length != 0" class="">
<img  style="width: 100%;height: 200px;padding: 10px;" ng-click="open(banner)"  src="{{ image_url + data.image}}"  class=""></div>

controller:
var randomIndex = Math.round( Math.random() * ($scope.banners.length-1) );
for(var i = randomIndex ; i < $scope.banners.length ; i++){
$scope.banner.push($scope.banners[i]) ;
}


#2

can you provide more of your code? whats exactly your problem?