title: Passing server parameters to ngModule after RC5 upgrade
body: <p>I'm trying again to pass parameters to my application. Since RC5, I have to use ngModule. (this solution: <a href="https://stackoverflow.com/questions/37337185/passing-asp-net-server-parameters-to-angular-2-app">Passing asp.net server parameters to Angular 2 app</a> no longer works since RC5)</p>
  
  <p>How to pass parameters to ngModule?</p>
  
  <p>Here's a plunker to illustrate problem: 
  <strong><a href="http://plnkr.co/edit/fJm51MoeKfcCnl6b5Ffn?p=preview" rel="nofollow noreferrer">Plunker</a></strong></p>
  
  <p>index.html:</p>
  
  <pre><code>&lt;script&gt;
    System.import('app').then(module =&gt;   module.main('This is RIGHT'),
                  console.error.bind(console)
              );
  &lt;/script&gt;
  </code></pre>
  
  <p>main.ts:</p>
  
  <pre><code>import { browserDynamicPlatform } from '@angular/platform-browser-dynamic';
  import { provide } from '@angular/core';
  import { AppModule } from './app.module';
  
  export function main(test: string) {
  
    browserDynamicPlatform().bootstrapModule(AppModule, [{ providers: provide('Test', { useValue: test, }) }]);
  }
  </code></pre>
  
  <p>app.module.ts</p>
  
  <pre><code>import { NgModule, provide }       from '@angular/core';
  import { BrowserModule }  from '@angular/platform-browser';
  import { AppComponent }       from './app.component';
  
  @NgModule({
    imports: [
      BrowserModule
    ],
    declarations: [
      AppComponent
    ],
    providers: [
      provide('Test', { useValue: 'This is WRONG' })
    ],
    bootstrap: [ AppComponent ]
  })
  export class AppModule {
  }
  </code></pre>