title: Angular 2 Can't resolve all parameters for abcService
body: <p>Getting the following error message when trying to inject a config object into a service:</p>
  
  <pre><code>Error: Can't resolve all parameters for abcService: (?, [object Object]).
  </code></pre>
  
  <p>I followed the documentation on <a href="https://angular.io/docs/ts/latest/guide/dependency-injection.html#!#dependency-injection-tokens" rel="nofollow noreferrer">dependency injection</a>, but can't get it working.</p>
  
  <p>In my service <code>abc.service.ts</code> I have the following: </p>
  
  <pre><code>import { IabcConfig } from 'abc.types';
  export let ABC_CONFIG = new OpaqueToken('abc.config');
  
  @Injectable()
  export class abcService {
      private config: IabcConfig;    
  
      constructor(@Inject(ABC_CONFIG) config: IabcConfig, private http: Http) {
          this.config = config;
      }
  }
  </code></pre>
  
  <p>and in my module <code>abc.module.ts</code>:</p>
  
  <pre><code>import { NgModule, ModuleWithProviders } from '@angular/core';
  import { CommonModule } from '@angular/common';
  import { IabcConfig } from '@abc/abc.types';
  import { abcService, ABC_CONFIG } from '@abc/abc.service';
  
  export const abcConfig: IabcConfig = {
      save: false,
      title: 'ABC',
  }
  
  @NgModule({ 
      imports: [
          CommonModule
      ]
  })
  export class ABCModule {
      static forRoot(): ModuleWithProviders {
          return {
              ngModule: SharedModule,
              providers: [
                  o7AuthenticationService,
                  { provide: ABC_CONFIG, useValue: abcConfig },
              ]
          };
      }
  }
  </code></pre>
  
  <p>Important libs I am using:</p>
  
  <pre><code>angular@2.4.0
  angular2-universal@2.1.0-rc.1
  zone.js@0.7.4
  </code></pre>