I would like to implement infinite scroll whose key feature is possibility to add new elements instead actualising whole content of list.
Currently I try with ng-infinite-scroll but as a result of using ngFor it every time renders whole list from the beginning.
<div style="width: 750px;">
<div class="posts-list"
infinite-scroll
[infiniteScrollDistance]="2"
[infiniteScrollThrottle]="300"
(scrolled)="onScrollDown()">
<post-component *ngFor="let item of array" [dataHref]="item"></post-component>
</div>
Such approach causing that elements fetch their data (what leads to unacceptable delays). I thought if it would be achievable to realize such thing with child components in router module (but this sounds bad because I don't have finite list of posts).
Anyone has ideas how to add new elements without repeating those which were already rendered?