If you want to disable dragging for a particular drag item, you can do so by setting the cdkDragDisabled
input on a cdkDrag
item.
<div cdkDropList class="list" (cdkDropListDropped)="drop($event)">
<div *ngFor="let item of dragedItems" cdkDrag
[cdkDragDisabled]="item.disabled"> {{item.value}} </div>
</div>