libs/ng-lib/src/lib/scully-lib.module.js
/**
     * We use a little trick to get a working idle-service.
     * First, we separate out the component in a separate module to prevent a circulair injection
     * second we create a constuctor that activates the IdleMonitorService. as that is provided for 'root'
     * there will be only 1 instance in our app.
     * We don't need forRoot, as we are not configuring anything in here.
     */
We use a little trick to get a working idle-service.
First, we separate out the component in a separate module to prevent a circulair injection
second we create a constuctor that activates the IdleMonitorService. as that is provided for 'root'
there will be only 1 instance in our app.
We don't need forRoot, as we are not configuring anything in here.
We use a little trick to get a working idle - service . First we separate out the component in a separate module to prevent a circulair injection second we create a constuctor that activates the IdleMonitorService . as that is provided for ' root ' there will be only 1 instance in our app . We don ' t need forRoot as we are not configuring anything in here .
static forRoot(config = ScullyDefaultSettings) {
        config = Object.assign({}, ScullyDefaultSettings, config);
        return {
            ngModule: ScullyLibModule_1,
            providers: [{ provide: SCULLY_LIB_CONFIG, useValue: config }],
        };
    }
static forRoot ( config = ScullyDefaultSettings ) { config = Object . assign ( { } , ScullyDefaultSettings , config ) ; return { ngModule : ScullyLibModule_1 , providers : [ { provide : SCULLY_LIB_CONFIG , useValue : config } ] , } ; }
We use a little trick to get a working idle-service.
We use a little trick to get a working idle - service .