You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the "ng2-idle" component without the "ng2-idle-keepalive", the sample documentation on how to use causes me to get the following error when using Angular2 (currently using 2.1.x):
Error: No provider for KeepaliveSvc! at NoProviderError.BaseError [as constructor]
However, I can get around this but doing both of the following...
export class AppComponent {
private configureIdleBehavior() {
// this._idle.setKeepaliveEnabled(false); //must comment this out, else app wants a valid KeepaliveSvc
My fix was pieced together with the help of some other issues but wanted to report it here so the documentation on the main page can be updated accordingly to help others getting bitten by this, or to actually fix the providers in the component to work properly with the official Angular 2+ releases.
The text was updated successfully, but these errors were encountered:
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
When using the "ng2-idle" component without the "ng2-idle-keepalive", the sample documentation on how to use causes me to get the following error when using Angular2 (currently using 2.1.x):
Error: No provider for KeepaliveSvc! at NoProviderError.BaseError [as constructor]
However, I can get around this but doing both of the following...
and
My fix was pieced together with the help of some other issues but wanted to report it here so the documentation on the main page can be updated accordingly to help others getting bitten by this, or to actually fix the providers in the component to work properly with the official Angular 2+ releases.
The text was updated successfully, but these errors were encountered: