title: How can I inject a string into a service factory?
body: <p>I'm trying to inject a string into a service factory, but am running into error <code>TS1206: Decorators are not valid here</code>.</p>
  
  <p>I'm using the following code - </p>
  
  <pre><code>export let serviceFactory = (http: Http, @Inject('TEMPLATE') template: string) =&gt; {
      return new Service(http, template);
  }
  </code></pre>
  
  <p>I use my factory like so - </p>
  
  <pre><code>export let serviceProvider = {
      provide: Service,
      useFactory: serviceFactory,
      deps: [Http]
  };
  </code></pre>
  
  <p>How can I inject a string in a service factory?</p>