angularangular-materialangular-material-6angular-cdkangular-dragdrop

Drag and Drop with sorting it is possible in Angular Material?


Scenario :

Example : https://stackblitz.com/edit/angular-by5l4g

App URL : https://angular-by5l4g.stackblitz.io

Drag and Drop and Sorting


Solution

  • Demo with only div draggable from the icon

    Application Code : https://stackblitz.com/edit/angular-drag-and-drop-example?file=src/app/app.component.ts

    Approach :


    Update 1 (according to checkbox question):

    Update 2 (according to delete and add question):