Description
Feature Description
I know this is a very insignificant "feature", but I think it will be helpful.
<cdk-virtual-scroll-viewport>
require fixed height to be set.
Without height it doesn't render any elements at all (even the html structure stays empty). This can be verry misleading and time consuming in some cases.
I just taked sandbox example with static data and modifyed it to take async data.
I was tired and spend few hours thinking about that is a bug in my code flow (timing, data refreshing or something else).
Today on a fresh mind I realize it's just because it has no height.
Maybe if you just warn
the user to set height if there is no height or maybe set min-height
= single element height. This can help to prevent others to make this mistake.
Use Case
When we have data and no height - no html is rendered. If there is a console.warn('there is no height man.')
will be very obviously and catchable.