Famous / famous-angular

Bring structure to your Famo.us apps with the power of AngularJS. Famo.us/Angular integrates seamlessly with existing Angular and Famo.us apps.
https://famo.us/angular
Mozilla Public License 2.0
1.92k stars 275 forks source link

Event from draggable? #172

Closed janober closed 10 years ago

janober commented 10 years ago

Sorry me again. Try to get the "moved" event from a draggable but somehow do not get it working. Thought it should have been possible by adding a "fa-pipe-to" (to an EventHandler) to the draggable. Sadly that does not seem to be the case. As soon as I add it I get "TypeError: undefined is not a function". What am I doing wrong? How would one do that? Thanks!

zackbrown commented 10 years ago

So this was the first time we've had to handle piping to/from a Modifier (Draggable is a Modifier.) I had hacked custom fa-pipe-from support into the fa-draggable directive, but fa-pipe-to was not yet supported. Rather than hacking it any more, I just added support for piping to/from Modifiers, and from my brief testing it looks like it works. Please let me know if this works for you. https://github.com/Famous/famous-angular/commit/070bf026644f1e49ce259144f1851bac606dee0d

janober commented 10 years ago

Thank you very very much for your help again! Works now perfectly! I am sure also other people will appreciate that in future!