跳转到内容
angular challenges logo Angular Challenges

🟠 Optimize Big List

挑战 #37

此内容尚不支持你的语言。

创建者 Thomas Laforge

Information

In this application, we will render a list of 100,000 individuals by clicking on the loadList button. If you open the Chrome developer panel by pressing F12, go to the Elements tab, and expand the element to see the list, you will notice that all 100,000 elements are rendered in the DOM, even though we can only see about 20 elements in the viewport. This process takes a lot of time, which is why the application is very slow at displaying the list.

We can use the Angular DevTool to profile our application and understand what is happening inside our application. I will show you how to do it inside the following video.

Statement

The goal of this challenge is to implement a better alternative to display big list of items.

Hints:

Hint 1

If you’re unsure where to begin, I recommend reading the Angular CDK virtualization documentation.

贡献者

感谢所有帮助本文档变得更好的贡献者!

  • tomalaforge
  • jdegand
  • LMFinney