Skip to content
This repository has been archived by the owner on Apr 20, 2018. It is now read-only.

fromEvent not firing in V4.0.1 at least with angularjs & angular-material #957

Closed
manuelfc1 opened this issue Oct 9, 2015 · 4 comments
Closed

Comments

@manuelfc1
Copy link

I'm using Observable fromEvent inside a very simple directive with angularjs and angular material,
everything goes well with V.4.0.0, but when I update to v.4.0.1 it does not work any more.

This is the link function of the angular directive:

link = (scope: IExtendedScope, ele: ng.IAugmentedJQuery, attrs: IExtendedAttrs) => {
this.rx.Observable.fromEvent(ele[0], 'click')
// bla bla bla
.subscribe(
(res: any) => console.log(res),
(err: Error) => console.log(err),
() => console.log('completed'));
});

@paulpdaniels
Copy link
Contributor

So it's throwing an exception? Or the event is not firing? Could you build a simple jsbin/jsfiddle to reproduce the issue?

@manuelfc1
Copy link
Author

The event is not firing at all.
The fact is that with 4.0.0 all went well, but not with 4.0.1.
I'll try to reproduce it later will a codepen

@manuelfc1
Copy link
Author

@paulpdaniels here is the codepen:

https://codepen.io/manuelfc1/pen/epRXaK

@manuelfc1 manuelfc1 changed the title fromEvent not working in V4.0.1 at least with angularjs & angular-material fromEvent not firing in V4.0.1 at least with angularjs & angular-material Oct 10, 2015
@Javiani
Copy link

Javiani commented Oct 10, 2015

The event is not firing at all.
The fact is that with 4.0.0 all went well, but not with 4.0.1.
I'll try to reproduce it later will a codepen
@manuelfc1, @paulpdaniels

I'm learning RxJs right now and I was pulling the 4.0.1 from cdn, and yes... the fromEvent is not firing any events, I'm using plain javascript ( Vanilla ). It took some hours to realize that the problem was the version of the library, and not the implementation... My baby step wasn't working at all..

It fires events only if you're using jQuery...
I'll use 4.0.0, I just pass by to let you know about that issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants