Say I use ngFor
to populate my cdkDropList
. What is the most efficient way to restrict a cdkDrag
element to only drag beside certain elements?
Asked
Active
Viewed 503 times
2

Shan Surat
- 21
- 1
-
By beside if you mean wrapping inside a wrapper element and define bound than there is already official example for it https://material.angular.io/cdk/drag-drop/examples#cdk-drag-drop-boundary – Samiullah Khan Feb 14 '22 at 14:16