I'm currently working with the angular 2 infinite scroll module and I need to display 10 elements at a time. When the user scrolls down, the next 10 elements should be shown and the scrollbar should adjust accordingly. I've tried several methods but haven't had any luck so far. Any assistance would be greatly appreciated. Thank you.
Below is my code snippet:
`infinite-scroll
[infiniteScrollDistance]="2"
[infiniteScrollThrottle]="500"
[scrollWindow]="false"
(scrolled)="onScrollDown()"
(scrolledUp)="onScrollUp()"
style="overflow: auto; height:250px; width:350px" >
<div class="scrollBar">
<ul *ngFor="let item of list" >
<li>{{item}}</li>
</ul>
</div>`