How is virtual scrolling different from lazy loading in angular 7? Is there any difference between the two?
Asked
Active
Viewed 1,101 times
0
-
view [this](https://stackoverflow.com/a/21676579/7541317) answer. hope it will be helpful for you. – Farhat Zaman Jan 15 '20 at 06:54
1 Answers
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.
![](../../users/profiles/8536398.webp)
akhila nair
- 68
- 8