ng2-dragula icon indicating copy to clipboard operation
ng2-dragula copied to clipboard

To add different dragula bag names in a group and both in different components

Open ManjunathaNayaka opened this issue 7 years ago • 1 comments

REQUIRED: Before filing a bug report

Change each [ ] to [x] when you have done it.

Describe the bug (required) In a Parent component two sub components are added Component 1 and component 2.

Two components are: Component 1 initialised first with dragula bag name and added(which containts two bags with same name) Component 2 initiliased with same dragaula bag name as Component 1 bag name. when this dragula is initilaised it destroys the existing Component 1 bags in the dragula service.

So I cant drag n drop the components from component 1 to component 2 inside parent component. As component dragula bags are deleted while initiliasing the component 2.

Now I can't use the same bag names. Any idea how can we move objects from component1 to component2. or any groups we can create with different bag names?

thanks in adavance for the solution.

ManjunathaNayaka avatar Dec 11 '18 06:12 ManjunathaNayaka

If you use createGroup, please only call it once. From a parent component, for example.

cormacrelf avatar Feb 14 '19 03:02 cormacrelf