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

Updated to work with angular 2.0.2 #21

Closed mvarblow closed 7 years ago

mvarblow commented 7 years ago

I'm unable to pull ng2-idle into my angular webpack application. I get the following error:

Error: No provider for KeepaliveSvc!

Based on a previous issue - https://github.com/HackedByChinese/ng2-idle/issues/3 - I suspect that this is because I'm using angular 2.0.2 but ng2-idle was built against a specific angular patch release (2.0.0). This change makes ng2-idle a little more friendly by allowing 2.0.x.

stephengeorgewest commented 7 years ago

How does this change get published to npm? I'm still getting "2.0.0" on npm install. Is it automatic based off version numbers (which didn't change), or does it need to be done manually?

This change should probably be made in ng2-idle-keepalive as well.

moribvndvs commented 7 years ago

I forgot to push out a new alpha release with this change. It's up there in 1.0.0-alpha.17. ng2-idle-keepalive has been updated, too.