title: Bootstrapping multiple module in Angular 6 via array
body: <p>is it possible to declare an array and use that to bootstrap multiple components in module.ts.
  I was trying something like this</p>
  
  <pre><code>    export var initialComponents = [];
      initialComponents.push(AppComponent);
      if(condition) {
        initialComponents.push(IchFooterComponent);
      }
  </code></pre>
  
  <p>and then</p>
  
  <pre><code>bootstrap: initialComponents
  </code></pre>
  
  <p>Which gives me the following error</p>
  
  <blockquote>
    <p>Error: The module oa was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.</p>
  </blockquote>