Make any list draggable in minutes

Опубликовано: 26 Июль 2026
на канале: Brian Treese
1,509
121

Learn how to add drag-and-drop reordering to any Angular list in just minutes using the Angular CDK.

🚀 Want to master Angular Signal Forms?
I just released a full course where we build a real Signal Form step-by-step covering validation, async validation, dynamic fields, custom controls, and submission patterns.

👉 Enroll here:
https://www.udemy.com/course/angular-...

In this tutorial, you'll walk through, step-by-step, transforming a simple todo list into a fully interactive, draggable experience powered by modern Angular signals and the CDK. You’ll see how to install the CDK, use the CdkDropList and CdkDrag directives, handle the drop event with moveItemInArray(), and style your drag preview and placeholder for smooth visual feedback. Perfect for developers who want to enhance user experience with minimal code and no extra dependencies.

------------------------------------------------------------------------------

🔔 Subscribe for more Angular tutorials & tips → [🔗 https://www.youtube.com/c/briantreese...]
👍 Like this video if you found it helpful, it really helps support the channel!

------------------------------------------------------------------------------

🔗 Demo Links:
Before (https://stackblitz.com/edit/stackblit...)
After (https://stackblitz.com/edit/stackblit...)

------------------------------------------------------------------------------

📚 Additional Resources:
Angular CDK Drag and Drop Documentation: https://material.angular.dev/cdk/drag...
moveItemInArray API Reference: https://material.angular.dev/cdk/drag...
My course "Angular: Styling Applications": https://www.pluralsight.com/courses/a...
My course "Angular in Practice: Zoneless Change Detection": https://app.pluralsight.com/library/c...

------------------------------------------------------------------------------

🎓 Angular Certification (New)

If you’re looking to validate your Angular skills, there’s now an official certification built and reviewed by Google Developer Experts.

It covers modern Angular concepts and is one of the first structured ways to demonstrate real-world Angular knowledge.

👉 https://certificates.dev/angular?frie...

(They’re currently offering up to 50% off)

------------------------------------------------------------------------------

📖 Chapters:
0:00 – Introduction
0:28 – Tour the Todo App (Before Drag & Drop)
1:09 – How the Angular Todo List Works
2:17 – Install the Angular CDK for Drag and Drop
2:43 – Import CDK Directives in the Component
3:17 – Turn the List into a CDK Drop Zone
3:52 – Make Each Todo Item Draggable
4:20 – Handle the Drop Event and Reorder the List
5:40 – Test Drag and Drop Reordering in Angular
6:12 – Add Drag Preview and Drop Placeholder Styles
7:11 – Test the Final Angular Drag and Drop Experience
7:22 – Wrap-Up: Drag to Reorder Made Easy with Angular CDK

------------------------------------------------------------------------------

🧰 About the Tools Used
This tutorial uses the Angular Component Dev Kit (CDK), a suite of foundational utilities that simplify building complex UI behavior like drag-and-drop, overlays, and accessibility features. The example leverages CdkDropList, CdkDrag, and the moveItemInArray() helper to add reordering logic without third-party libraries, keeping your Angular app lightweight, fast, and modern.

------------------------------------------------------------------------------

#angular #angularcdk #draganddrop #angularsignals #webdevelopment #frontend #typescript #angulartutorial #angular20 #uidesign #learnangular #codingtutorial