Put in order · Angular course · Module 12: Security and Performance
@defer block with a placeholder
Order the lines of an @defer block that lazily loads a chart (top to bottom):
Items to put in order
- }
- } @placeholder {
- <div>The chart will load when you scroll...</div>
- <app-heavy-chart [data]="chartData()" />
- @defer (on viewport) {
You can check the correct answer by solving this task in the CodeWorlds game.