Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

events are only being $emitted, should they also be $broadcasted #25

Closed
eddedd88 opened this issue Sep 3, 2015 · 1 comment
Closed

Comments

@eddedd88
Copy link

eddedd88 commented Sep 3, 2015

I was trying to resize a table inside of a resizable container by trying to hook into the 'resizeEnd' event.

My solution was to catch the event at the top controller and then $broadcast an event.

Would it be better if this component also broadcasted these events instead of having them to echo back?

@Reklino
Copy link
Owner

Reklino commented Oct 27, 2015

Hm... Because of the directive's isolated scope, we'd have to use

scope.$parent.$broadcast('angular-resizable.resizeStart', info);

I don't see why this should cause any issues though. See this pen for an example of how to implement it yourself. I'll add this to the enhancements for the next version.

@Reklino Reklino closed this as completed Oct 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants