The short of it is that I'm trying to use angular-dragdrop (http://codef0rmer.github.io/angular-dragdrop/#/) inside a custom directive. These directives are used inside a view, and the controller for the view has an onDrop() method. I want every instance of the directive to call the controller's onDrop() method when something is dropped into it.
My first thought was to use "&" on the controller's function, as I think that is the correct way for a directive to access the parent scope. However, while this seems to result in different behaviors, it doesn't actually work. An example is on this plunker. You can drag the item between the first target and second targets and the callback is called, but not when it's dragged to the third target, which is using a directive. http://plnkr.co/edit/s6HHEhf4Upe80Hmvk6xT?p=preview I'm wondering first what the bug is, and secondly if I'm thinking about this wrong. My background is in Flex - the way to do it there would be to have your custom component broadcast an event, which could bubble. The way it's done here feels very strange and unintuitive to me. Any help and/or guidance would be very much appreciated! -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
