Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

7
  • 4
    I think you need both the stable and experimental module imported: import { ScrollingModule as ExperimentalScrollingModule } from '@angular/cdk-experimental/scrolling'; import { ScrollingModule } from '@angular/cdk/scrolling'; imports: [ScrollingModule, ExperimentalScrollingModule]
    – Preda7or
    Commented Apr 15, 2021 at 10:20
  • 1
    "@angular/cdk": "12.2.8", "@angular/cdk-experimental": "12.2.8" If i have set only autosize, i get an error Error: cdk-virtual-scroll-viewport requires the "itemSize" property to be set.
    – Juri
    Commented Oct 6, 2021 at 6:43
  • @Juri did you find the solution?
    – Maurice
    Commented Oct 21, 2021 at 21:40
  • 1
    @Maurice i guess somithing with my module configuration is wrong, adden both modules in shared module and now it seems to work. Thx for asking
    – Juri
    Commented Oct 22, 2021 at 9:17
  • 2
    Thanks a lot for your answer, it si working for me ... The strange thing is that in "@angular/cdk": "^15.2.0" we still do not have this behaviour Commented Mar 12, 2023 at 12:03