When I filter the array we have less data we are not getting the vertical scroll. So *cdkVirtualFor
not re-rendering the UI. It works when we have more data.
If I use *ngFor
always it works.
Using *ngFor is the better choice for my case or still we can use *cdkVirtualFor and make some changes to fix this?
or is this related to height of the cdk-virtual-scroll-viewport
?