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

ngModule and WebPack #23

Closed
briebug opened this issue Oct 28, 2016 · 1 comment
Closed

ngModule and WebPack #23

briebug opened this issue Oct 28, 2016 · 1 comment

Comments

@briebug
Copy link

briebug commented Oct 28, 2016

Using the latest version of ng2-Idle, I am not able to get it to work with the full release of Angular 2. I keep getting errors around No Provider for KeepAliveSrv.

To reproduce (using angular-cli):

ng new idleTest

npm install --save ng2-idle

There is no module exposed to add to app.module.ts, so I have to resort to adding IDLE_PROVIDERS to the providers section.

@fernandohlee
Copy link

Hi I'm running the angular 2 (~2.0.1) version and the ng2-idle (1.0.0-alpha.16) with webpack, I've applied the workaround refer to @iherbivore answer on (#22), however in my case I just added to providers SimpleExpiry and the PalIdle class, like so:

providers: [ PalIdle, SimpleExpiry ],

hope that helps

grbsk added a commit that referenced this issue Nov 4, 2016
This commit adds support for NgModule and replaces the old ng2-idle/core approach. Use
Ng2IdleModule.forRoot() in your app module imports to use the new module.

Fixes #3, #10, #22, #23, #24
@grbsk grbsk closed this as completed Nov 4, 2016
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