bevacqua / angularjs-dragula

:ok_hand: Drag and drop so simple it hurts
https://bevacqua.github.io/angularjs-dragula
MIT License
509 stars 110 forks source link

Common Bag inside component #111

Closed bliitzkrieg closed 7 years ago

bliitzkrieg commented 7 years ago

Is it possible to have a bag inside a component? I want to drag and drop from a bag within a component (Component A) to another bag inside a page controller. The Component A is being used in the page controller template. I've tried using the dragula-scope using the $scope.$parent.$parent (being the page controllers scope) but its still not working. The bags share the same name.

bliitzkrieg commented 7 years ago

Figured it out. I'm an idiot and wasn't using my ctrlAs variable when assigning the dragula-scope