In order to avoid div creation as in the case of ng-repeat, I want to change the implementation using collection-repeat.But its not at showing the initial divs itself. Can someone help me here ?
The code using ng-repeat is added below:
<div class="list" ng-repeat="subCatItem in getSubcats() track by $index">
<h4>Title: {{subCatItem.title}}</h4>
<!-- HORIZONTAL LISTING OF IMAGES WITH TITLE -->
<ion-scroll direction="x" class="item wide-item">
<div ng-repeat="item in getSubcatData(subCatItem) track by $index"
class="item">
<p>{{$index}}<img ng-src='{{item.images[0]["thumb-url"]}}' /></p>
</div>
<ion-infinite-scroll
on-infinite="loadMoreSubItems(subCatItem)"
distance="1%">
</ion-infinite-scroll>
</ion-scroll>
</div>
</ion-content>
Please help me to convert the same with collection-repeat.Its urgent.
Reading the documentation i found out i cant use ng-show if i am using collection repeat. Then i have a doubt: I am displaying the list (represented by the collection repeat that i am trying to make it work) depending of a condition (so i need the ng-show wrapping the collection-repeat), then how can i do that if i cant use the ng-show ?