Google News
logo
Aurelia - Interview Questions
What is Infinite Scroll in Aurelia?
The UI Virtualization plugin allows you to virtually scroll lists comprised of many items, it also provides an infinite scroll attribute which allows you to fetch more items when the user scrolls the container. The infinite-scroll-next attribute accepts a callback function in your view which receives three arguments when fired.
 
* Argument #1 An integer value that represents the current item that exists at the top of the rendered items in the DOM.

* Argument #2 A boolean value that indicates whether the list has been scrolled to the bottom of the items list.

* Argument #3 A boolean value that indicates whether the list has been scrolled to the top of the items list.
Advertisement