angular-bacon icon indicating copy to clipboard operation
angular-bacon copied to clipboard

added an adaptor for angular scope events to EventStreams

Open ajkovar opened this issue 10 years ago • 2 comments

Maybe I was overlooking something really obvious but I was having a hard time figuring out how to transform angular scope events into EventStreams.

I think it would be nice to be able to do things like this:

stream.takeUntil($scope.eventAsStream("$destroy").map(true))

Let me know if there is some other obvious way to handle this, otherwise please consider this pull request!

ajkovar avatar Sep 24 '14 19:09 ajkovar

Good suggestion! I added it.

ajkovar avatar Oct 03 '14 00:10 ajkovar

My previous deregistration logic was flawed. I added a fix for it.

ajkovar avatar Nov 03 '14 02:11 ajkovar