I am using Angular2 for my application. I understand that the syntax to use infinite scroll is:
<div (scroll) = "scrollHandler()">
</div>
But is there any way we can specify anything like "infinite-scroll-distance", in Angular2?
I am using Angular2 for my application. I understand that the syntax to use infinite scroll is:
<div (scroll) = "scrollHandler()">
</div>
But is there any way we can specify anything like "infinite-scroll-distance", in Angular2?
You can use (window:scroll)="moving($event)" in html
<div (window:scroll)= "scrollHandler()"></div>
Try to use it on outer div