moribvndvs / ng2-idle

Responding to idle users in Angular (not AngularJS) applications.
https://moribvndvs.github.io/ng2-idle
Apache License 2.0
323 stars 129 forks source link

Switch to Angular 2.0.0 #19

Closed tiagocpeixoto closed 8 years ago

tiagocpeixoto commented 8 years ago

Hi everyone,

After upgraded my project to Angular 2.0.0, I can´t use browserify to generate bundle.js because ng2-idle throws "no provider for Http!" exception when I try to load my app from the browser (as I said, using bundle.js generated by browserify).

If I remove ng2-idle dependency from my components, I don´t get this exception and the app works flawlessly.

So, I suppose that ng2-idle should be switched to Angular 2.0.0. Is this statement correct?

Is there anything that I can do to overcome this problem?

Thanks in advance.

Tiago Peixoto.

isametal88 commented 8 years ago

https://github.com/HackedByChinese/ng2-idle/issues/17

This workaround worked for me , too. But obviously we are waiting for an update of the component :-)

moribvndvs commented 8 years ago

fa7441157b23574219dbfa098f15d42d57abd5c6 Brings it up to 2.0.0