Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

327
Views
How to make a drag and drop board in Angular

is there a way to make a drag and drop board in Angular ? What I want to do is having a column on the right with a list of elements that you could drag in a div on the left, and they would get copied in the left box and be able to be moved freely (see image below).

drag-and-drop-board

So far, i already figured out how to do the list part, but the problem is the board part. The list is a div with the cdkDropList attribute, and the elements in it all have the cdkDrag tag to them.

What I wanted to do is that when the user would drag an element from the list to the left board, I would have intercepted the event that is emitted, and copied the element on the board. But the method I created is not triggered when this happens. I tried both onDragEnd and cdkDragEnded, without success. Maybe am I confused on which element should trigger the event, the box or the item ?

Also, 99% of examples on internet show how to do cdkDrop stuff only on lists. I'm almost wondering if Angular's own DragDropModule is the right tool for what I want to do.

Here is my item :

<div class="rfid-box"
     cdkDrag
     cdkDragEnded="dragEndedProcess()"
     cdkDragBoundary={{boundary_name}}>
    {{object_name}}
</div>

And here is my left box (board):

<div cdkDrop class="left-box">
        <dragging-box object_name="Télécommande" boundary_name=".left-box"></dragging-box>
</div>

As you can see, for now, the "Télécommande" object is manually created, but eventually all elements would be created by dragging from the list on the right.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!