Storing injector instance for use in components : <p>Before RC5 I was using appref injector as a service locator like this:</p>

<p>Startup.ts</p>

<pre><code>bootstrap(...)
.then((appRef: any) =&gt; {
    ServiceLocator.injector = appRef.injector;
});
</code></pre>

<p>ServiceLocator.ts</p>

<pre><code>export class ServiceLocator {
    static injector: Injector;
}
</code></pre>

<p>components:</p>

<pre><code>let myServiceInstance = &lt;MyService&gt;ServiceLocator.injector.get(MyService)
</code></pre>

<p>Now doing the same in bootstrapModule().then() doesn't work because components seems to start to execute before the promise. </p>

<p>Is there a way to store the injector instance before components load?</p>

<p>I don't want to use constructor injection because I'm using the injector in a base component which derived by many components and I rather not inject the injector to all of them.</p>
