components icon indicating copy to clipboard operation
components copied to clipboard

feat(cdk/scrolling): Add support for nested for loop

Open Klapik opened this issue 5 years ago • 6 comments

Feature Description

The Angular Material cdk-virtual-scroll-viewport property is not working correctly for nested *ngFor. The viewport is split into two and the scroll does not work as expected. Please assist in listing in viewport with parent and child.

Use Case

 <div *cdkVirtualFor="let parent of parents">
    <h4>{{ parent.name }}</h4>
    <div>
      <div *ngFor="let child of children">
        <p>{{ child.name }}</p>
      </div>
    </div>
  </div>
</cdk-virtual-scroll-viewport>

Klapik avatar Nov 24 '21 08:11 Klapik

Any update on this @wagnermaciel ? i have also same requirement

Sathishchary avatar Feb 19 '22 15:02 Sathishchary

@Sathishchary no updates. Currently this is a very low priority issue for us

wagnermaciel avatar Feb 19 '22 17:02 wagnermaciel

Just a heads up that we kicked off a community voting process for your feature request. There are 20 days until the voting process ends.

Find more details about Angular's feature request process in our documentation.

angular-robot[bot] avatar Mar 14 '22 15:03 angular-robot[bot]

Thank you for submitting your feature request! Looks like during the polling process it didn't collect a sufficient number of votes to move to the next stage.

We want to keep Angular rich and ergonomic and at the same time be mindful about its scope and learning journey. If you think your request could live outside Angular's scope, we'd encourage you to collaborate with the community on publishing it as an open source package.

You can find more details about the feature request process in our documentation.

angular-robot[bot] avatar Apr 03 '22 15:04 angular-robot[bot]

Is it possible to run a new voting round for this one?

kramar avatar May 18 '22 14:05 kramar

Any updates on this? 3rd party libraries like ngx-ui-scroll seem to support nested loops but the official CDK doesn't work with nested loops as far as I know. This feature would be much appreciated and I suppose many apps require such functionality.

inexuscore avatar Jul 31 '24 13:07 inexuscore