I have an Angular2 component using ng2-dragula to drag and drop:
@Component({ selector: 'my-comp', directives: [ Dragula ], viewProviders: [ DragulaService ], template: ` <div class="my-div"> <div *ngFor="#item of items" [dragula]='"card-bag"' [dragulaModel]='items'> ... </div> </div> ` })
My problem: if I create several components of "my-comp", the element inside the "card-bag" cannot drag / drop this component, although they have the same bag name. This item can only drag it inside its component.
Do we have any configurations for dragging and dropping components, or is this a limitation of ng2-dragula?
Thanks.
javascript angular drag-and-drop dragula
qnreck
source share