I tried to get client height when I scroll page:
@HostListener('window:scroll', ['$event']) onScrollEvent($event) {
if ($event.scrollHeight - $event.scrollTop === $event.clientHeight) {
console.log('scrolled to the end');
}
});
I need to detect if user scrolled to the end of page