0

How is virtual scrolling different from lazy loading in angular 7? Is there any difference between the two?

1 Answers1

0

Virtual Scroll to display the items without slowing the app down. Display only small subset of the data that is in the viewport and keep changing the records as the user scrolls. It keep the number of DOM elements constant hence boosting the performance of the application.

Lazy loading is the process of loading some features of your Angular application only when you navigate to their routes for the first time. This can be useful for increasing your app performance and decreasing the initial size of the bundle transmitted to the user's browser.