Angular 7 Drag and Drop - Dynamically Create Drop Zones

后端 未结 6 714
无人及你
无人及你 2021-01-31 18:12

Is there a way to dynamically create drop zones? I\'m having some troubles with ngFor and cdkDropList.

Here is my first list and draggable elements:

           


        
6条回答
  •  鱼传尺愫
    2021-01-31 19:02

    With cdkDropListGroup you can now do:

    No longer a need for cdkDropListConnectedTo in this case. See https://github.com/angular/material2/blob/master/src/cdk/drag-drop/drag-drop.md

提交回复
热议问题