ion-infinite-scroll.

The InfiniteScroll component holds an infinite scroll logic and requires a child InfiniteScrollContent component in order to display its content.
It allows you to perform a given task when the user scrolls a specified distance from the bottom or top of the page.
To do so, add the ionInfinite Event to your InfiniteScroll with a CustomAction inside.
Copy/paste below code in your action and add yours.
<pre>//disable scroll event.target.disabled = true;

let isOK = true; //TODO: add your code //get next items and push them //… if (isOK) { //enable scroll event.target.disabled = false; }

//specify loading is complete event.target.complete(); resolve(); </pre></code>
For more information: InfiniteScroll.

Name Description
Disabled If true, the infinite scroll will be hidden and scroll event listeners will be removed.
Position Define the position of the infinite scroll element.
Threshold Define the threshold distance in percents or pixels, from the bottom of the content.
Comment Describes the object comment to include in the documentation report. This property generally contains an explanation about the object.
Identifier Defines the component identifier.
Is active Defines whether the component is active.