title: Angular - using forRoot({}) config in loadChildren() to configure a lazy-loaded module
body: <p>I want to have a loaded module configurable. In theory, I want a module that is its own bigger application do receive some configuration. To show / load certain elements depending on the config the main application sends down. </p>
  
  <p>I used that with other modules but those where not lazyLoaded. I tried and searched around and have not seen the usage of something like:</p>
  
  <pre class="lang-js prettyprint-override"><code> children: [
        {
          path: 'application-module',
          loadChildren: () =&gt; import('@application-module').then(m =&gt; m.ApplicationModule.forRoot({
           foo:'bar'
          }))
        }
      ]
  </code></pre>
  
  <p>Is that even possible? If I use it I get the error
  <code>error: Error: No NgModule metadata found for '[object Object]'.</code>
  That is common when the module you load is not defined.</p>
  
  <p>Or am I on the wrong track and there is a better solution for that? 
  Thank you</p>