Recall & Review
beginner
What is virtual scrolling in Angular?
Virtual scrolling is a technique that loads and renders only the visible items in a large list to improve performance and reduce memory use.
Click to reveal answer
beginner
Which Angular module provides virtual scrolling features?
The Angular CDK (Component Dev Kit) provides the ScrollingModule, which includes virtual scrolling components.
Click to reveal answer
intermediate
How does virtual scrolling improve user experience with large lists?
By rendering only visible items, virtual scrolling makes scrolling smooth and fast, avoiding delays and freezes caused by rendering all items at once.
Click to reveal answer
beginner
What component is used in Angular CDK for virtual scrolling?
The component is used to create a viewport that only renders visible list items.
Click to reveal answer
intermediate
Name one key input property of and its purpose.
The 'itemSize' property defines the height (or width) of each item, helping the viewport calculate which items to render.
Click to reveal answer
What does virtual scrolling do in Angular?
✗ Incorrect
Virtual scrolling renders only the visible items to keep the app fast and responsive.
Which Angular package provides virtual scrolling components?
✗ Incorrect
The Angular CDK's ScrollingModule provides virtual scrolling features.
What is the role of the 'itemSize' property in ?
✗ Incorrect
'itemSize' tells the viewport how tall or wide each item is to calculate which items to show.
Why is virtual scrolling better than rendering all items in a large list?
✗ Incorrect
Virtual scrolling improves performance by rendering only visible items, making scrolling smooth.
Which HTML element is replaced by for virtual scrolling?
✗ Incorrect
- or other container elements to manage large lists efficiently.
Explain how virtual scrolling works in Angular and why it is useful for large lists.
Think about how showing fewer items at once helps the app run faster.
You got /5 concepts.
Describe the steps to implement virtual scrolling in an Angular app using the CDK.
Focus on module import, component usage, and key properties.
You got /5 concepts.