import { Component } from '@angular/core' ; import { CdkDragDrop , moveItemInArray } from '@angular/cdk/drag-drop' ; title @ Component ( { selector : 'cdk-drag-drop-disabled-example' , templateUrl : 'cdk-drag-drop-disabled-example.html' , styleUrls : [ 'cdk-drag-drop-disabled-example.css' ] , } ) export class CdkDragDropDisabledExample { items = [ { value : 'I can be dragged' , disabled : false } , { value : 'I cannot be dragged' , disabled : true } , { value : 'I can also be dragged' , disabled : false } ] ; drop ( event ) { moveItemInArray ( this . items , event . previousIndex , event . currentIndex ) ; } }