I want to implement infinite scroll and I am using ngx-infinite-scroll, but the onScroll() function is not triggered. I have tried everything I've seen on other questions but with no success. I want to use ngx-infinite-scroll with angular material table.
<div
infiniteScroll
[infiniteScrollDistance]="2"
[infiniteScrollThrottle]="50"
(scrolled)="onScroll()">
</div>
onScroll() {
console.log("Scroll...");
}