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

How to call this in angular 2 #54

Closed
rrohitesh opened this issue Mar 28, 2017 · 1 comment
Closed

How to call this in angular 2 #54

rrohitesh opened this issue Mar 28, 2017 · 1 comment

Comments

@rrohitesh
Copy link

Hello All,
I am trying to call this in my angular 2 component
like:

require('../../../style/vendors/EventSource.js');

	let es = new EventSource(URL);

But, i am getting the exception that event source :ErrorUncaught (in promise): TypeError: EventSource is not a constructor
TypeError: EventSource is not a constructor

Please suggest me i am doing this in correctly or not?

@remy
Copy link
Owner

remy commented Mar 28, 2017

No clue, pretty much why I've never got on with Angular to be honest. Sorry i cant be more help.

Closing as it's not a bug with the lib, but I'd suggest reaching out to StackOverflow community?

@remy remy closed this as completed Mar 28, 2017
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