Created an infinite scroll for #Angular
@brechtbilliet5.5K followers
14,937 views #Angular
10 Comments
Comments from the original post on X (Twitter)

@renatoaraujoc
“It keeps loading more data until the screen is filled”. Does your library listen to unused viewport height or also works with parent container elements?
2 likes

@brechtbilliet
Great question mate! It uses the IntersectionObserver class. Whenever #trigger is in the viewport, it needs to load more data. This approach works with all different heights of rows, and even with collapsable rows.
1 like

@raphaelgruberDE
@pick_simplified Why the choose in between. I would appreciate an article AND a video 💪😂
1 like

@brechtbilliet
@pick_simplified That sounds like an idea 😂💪🚀
2 likes

@gauravbhojwani2
Are you using IntersectionObserver behind the scenes ?
1 like

@brechtbilliet
I am! 🤓
1 like

@gergobergo
Again :)
1 like

@charliedev55
Please do article or the video or both 🙏🏻🙏🏻🙏🏻🙏🏻
1 like

@aPinix
Next level challenge is to have sticky like grouped (eg. contacts list) and drag on one point, scroll and drop it far away in the list/table 🚀
1 like

@aPinix
Another challenge: - Choose the parent (window or any element) by an id/ref/class or Directive - Choose what is the content scrolled that has to be listened to by a Directive or other as well
1 like