filtr Dragula

// change dagrula.provider.ts:
drake.on('drag', (el: any, source: any) => {
    dragElm = el;
    dragIndex = (el.getAttribute('filter-index')) ? +el.getAttribute('filter-index') : this.domIndexOf(el, source);
});

HTML:
<div [dragula]='dragType' [dragulaModel]='arraylist'>
  <div  *ngFor="let item of arraylist" [attr.filter-index]="arraylist.indexOf(item)">
    <!-- HTML here -->
  </div>
</div>
2 Programmers 1 Bug