IntersectionObserver Lazy Loader For Angular 2+

Author: aaronlifton2
Publish Date:
Official Page: Go to website
Views Total: 100
License: MIT

Description:

Yet another Angular 2 module to lazy load module in your app. By default, it uses IntersectionObserver instead of attaching an event listener to the document. Optionally, you can use the event listener instead to load things ahead of time. Comes with a lazy-load directive for lazy loading images, but you can extend the on-scroll-to directive to lazy load anything! Also, to detect scrolling in a container, set the scroll-root attribute to a selector.

Installation:

# NPM
$ npm install angular-lazy-load --save

Preview:

IntersectionObserver Lazy Loader For Angular 2+

Tags:

Leave a Reply