Angular 2+ Lazy For Directive

Author: robianmcd
Publish Date:
Official Page: Go to website
License: MIT

lazyFor is an Angular 2+ directive that can be used in place of ngFor. The main difference is that lazyFor will only render items when they are visible in the parent element. So as a user scrolls, items that are no longer visible will be removed from the DOM and new items will be rendered to the DOM.


npm install –save angular-lazy-for


Angular 2+ Lazy For Directive