Skip to main content
Version: 11.14.0

InfiniteScroll

The InfiniteScrollDirective enables infinite scrolling on any element. It uses IntersectionObserver to detect when the element enters the viewport and emits a onScroll event.

warning

This directive requires the IntersectionObserver API to be available in the browser.

Usage

<div infinityScroll (onScroll)="loadMore()"></div>

API Reference

Outputs

NameTypeDescription
onScrollEventEmitter<void>Emitted when the element becomes visible in the viewport.