title: alternative for provide in angular2?
body: <p>I had used <code>provide</code> from @angular/core.</p>
  
  <p>for eg. </p>
  
  <pre><code>import {provide} from '@angular/core';
  import {ToastOptions} from "ng2-toastr/ng2-toastr";
  let options = {
    positionClass: 'toast-bottom-right',
  };
  
  //then used inside providers array as :
  @NgModule({
    declarations: [
      AppComponent    
    ],
    imports: [
      BrowserModule,
      FormsModule,
      HttpModule,
      routing
    ],
    providers: [
      appRoutingProviders,
      ConfigService,    
      ToastsManager,
      provide(ToastOptions, { useValue: new ToastOptions(options)})    
    ],
    bootstrap: [AppComponent]
  })
  export class AppModule { }  
  </code></pre>
  
  <p>but I cant find how to do this in angular 2 final?</p>
  
  <p>any inputs?  </p>