angular-infinite-scroll | Angular directive for infinite scrolling | Form library
kandi X-RAY | angular-infinite-scroll Summary
kandi X-RAY | angular-infinite-scroll Summary
Angular directive for infinite scrolling.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of angular-infinite-scroll
angular-infinite-scroll Key Features
angular-infinite-scroll Examples and Code Snippets
Community Discussions
Trending Discussions on angular-infinite-scroll
QUESTION
I am using angular 8.2 and want to detect scroll event on elementRef.nativeElement
.
I have tried various ways:
- renderer2
- addEventListener
- rxJs
however, No luck.
Yes, definitely I can track event using document
and window
. but I want to detect on specific element.
I am using directive for the same.
I have seen that this requirement is working with rxJS 5.x and angular 4.x | 5.x. but not with angular 8.x to latest.
working example with angular 4.x and rxJs 5.x https://ashwin-sureshkumar.github.io/angular-infinite-scroller/
non working stackBlitz with latest angular
...ANSWER
Answered 2021-Jan-29 at 07:01You can detect scrolling on a specific element using @HostListener('scroll', ['$event'])
, it would make the most sense to create a directive so you can add the functionality on any object.
Here is an example on how to add it in a component (so it will listen to scroll events on the component element itself):
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install angular-infinite-scroll
Include the infinite-scroll js
Inject the infinite-scroll directive into your app module
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page