I would like to have my source model to remain unchanged after dragging one element away. Here is what i have sofar: component.ts:
constructor(private dragulaService: DragulaService) {
this.dragulaService.dropModel('DragItems').subscribe(dropItem => {
this.text += dropItem.item.data;
});
}
component.html:
<ul [dragula]="'DragItems'" [dragulaModel]="datas">
<li *ngFor="let data of datas">
<div class="list-item-class">
{{data.value}}
</div>
</li>
</ul>
In my target field i already have some text and get the value of the dragged item appended to the end of the existing text, but the dragged item disappears. Thank you for your help!