title: How do I pass a value from a service into the forRoot() of a module on bootstrap?
body: <p>I am trying to pass data that gets generated inside my <code>StateService</code> class as the config of a separate library module.</p>
  
  <pre><code>import { ThirdPartyIntegrationsModule } from 'third-party-integrations';
  import { StateService} from './services/state.service';
  
  @NgModule({
      imports: [
          ThirdPartyIntegrationsModule.forRoot({ deviceId: 'I want to use: StateService.deviceId' }),
          CommonModule,
      ],
      declarations: [
          AppComponent
      ],
      providers: [
          StateService
      ],
      bootstrap: [AppComponent]
  })
  export class AppModule { }
  </code></pre>
  
  <p>What's the best way to achieve this?</p>
  
  <p>I have tried creating a new instance of the stateservice then using the value - but it doesn't work:</p>
  
  <pre><code>import { StateService } from './services';
  const state = new StateService();
  
  @NgModule({
      imports: [
          ThirdPartyIntegrationsModule.forRoot({ deviceId: state.trackingId }),
  </code></pre>