How to create droplist items dynamically with Angular8?

268 views Asked by At

I found plenty of trivial examples how to use the different draggable directives but now I want to do this progmatically. There is a minimal sample app that demonstrates the problem. It receives the "dropped" event but the previousIndex and currentIndex are always the same.

https://stackblitz.com/edit/angular-8-drag-and-drop-dynamic-components

Click the add button a few times and then try to move them.

1

There are 1 answers

0
András Tornai On BEST ANSWER