title: How to have 2 bootstrap modules? in main.ts
body: <p>I need to know how I can enter 2 bootstrap modules</p>
  
  <p>try using this and it doesn't work</p>
  
  <p><strong>main.ts</strong></p>
  
  <pre><code>import './polyfills';
  
  import { enableProdMode } from '@angular/core';
  import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
  import {NgbdAlertCustomModule} from './app/alert-custom.module'
  import { AppModule } from './app/app.module';
  import { environment } from './environments/environment';
  
  import { NgbdAlertSelfclosingModule } from './app/alert-selfclosing.module';
  
  
  if (environment.production) {
    enableProdMode();
  }
  
  platformBrowserDynamic().bootstrapModule(AppModule, NgbdAlertSelfclosingModule)
    .catch(err =&gt; console.error(err));
  
  </code></pre>