Aller au contenu
angular challenges logo Angular Challenges

🟠 Optimize Big List

Challenge #37

Ce contenu n’est pas encore disponible dans votre langue.

Créé par 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.

Contributeurs

Merci à tous les contributeurs qui ont aidé à améliorer cette documentation !

  • tomalaforge
  • jdegand
  • LMFinney