Collection Repeat + Infinite Scroll
It appears that the
I'm also having this problem with infinite scroll and collection repeat. Also I don't think the scroll icon showing above the collection repeat is specific to infinite scroll because you also get the same problem with a ion-item under the collection repeat.
Just to confirm if i change back to ng-repeat it works perfectly fine so this is probably just an issue with how collection-repeat shows at the bottom of an ion-list
When is the fix coming? Without this fix you really can not use collection repeat directive. Infinite scroll comes naturally with collection repeat
This definitely does need to be fixed, I'll look at it within the week.
@ajoslin Hi, any news? :smile:
Fixed. collection-repeat now fits in with any other elements that are inside the ion-content.
@ajoslin With the latest update collection-repeat and infinite-scroll don't work anymore. The on-infinite function is called several times (that means the all the collection-repeat items are duplicated). Had to switch back to beta.10
@zelphir What version did it not work on? Have you tried it with beta 12? Just asking before I go and try to get it working again in my project.
Works for me with beta 12.
I'm still experiencing the hidden spinner icon, even with beta 13. There also seems to be another report on this: https://github.com/driftyco/ionic/issues/2376
@naavis I also still have the same problem with beta-13
I'm using beta-13 and have the same issue :(
Same issue here on beta-14
Collection Repeat + Infinite Scroll is working for me in beta 13 but it is not working in beta 14. Why is this so @ajoslin @adamdbradley?
Any update on this issue? Since its very urgent. Thanx
beta14 doesn't work, any hotfi?
+1
+1
Just tried 1.2, and for me its still not working. When loading the page, it fires loading once, and never again.
<ion-list>
<a class="my-item"
collection-repeat="x in y"
collection-item-height="240px"
collection-item-width="200px"
ng-href="xxx">
<div class="card">
<img ng-src="{{x.b}}" width="100%"><br>
<span>
{{x.a}} ({{x.b}})
</span>
</div>
</a>
</ion-list>
<ion-infinite-scroll
icon="ion-loading-c"
on-infinite="loadMore()"
distance="500px">
</ion-infinite-scroll>
Also tried distance="20%" and other values.
Hey @Screeze, i've faced the same problem in 1.1.
What happend is @ajoslin fixed this issue adding a display:block in the element after collection-repeat (infinte-scroll, in this case), here is the link https://github.com/driftyco/ionic/issues/2376#issuecomment-76751797.
And i'd changed the css (for layout purposes) like this:
.collection-repeat-after-container {
display: inline!important;
}
I've just removed this css and the infinite-scroll worked fine in collection repeat.