2

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?

UnderWood
  • 663
  • 2
  • 10
  • 22

1 Answers1

1

You can use (window:scroll)="moving($event)" in html

<div (window:scroll)= "scrollHandler()"></div>

Try to use it on outer div

RITESH ARORA
  • 447
  • 3
  • 11