title: Inject angular\core service manually, not through constructor
body: <p>I am trying to build a component factory for a popover type controller in my Angular2 app.</p>
  
  <p>I have it working now where I pass in all dependencies and my component to the controller, and create via componentFactoryResolver.resolveComponentFactory which works out well enough.</p>
  
  <p>I would like for the caller to not have to pass in references to the dependencies but cannot figure out how to manage that. I have tried playing with ReflectiveInjector.resolveAndCreate but can't quite seem to manage.</p>
  
  <p>How do I set this up so that I can access ComponentFactoryResolver and ViewContainerRef without having to import and pass out via all consumers of this service? See current setup below</p>
  
  <p>Caller/Presenter</p>
  
  <pre><code>myPopover = new PopoverController(this.componentFactoryResolver, this.viewContainerRef, MyComponent);
  </code></pre>
  
  <p>PopoverController</p>
  
  <pre><code>constructor (private componentFactoryResolver: ComponentFactoryResolver, private viewContainerRef: ViewContainerRef, private myComponent: Component){
      let factory = this.componentFactoryResolver.resolveComponentFactory(&lt;Type&lt;Component&gt;&gt;myComponent);
      let res = this.viewContainerRef.createComponent(factory);
  }
  </code></pre>
  
  <p>The above works great and builds the myComponent perfectly well, I'd just like to not have to keep passing around refs to ComponentFactoryResolver and viewContainer from my caller, who in theory should not care about those services.</p>
  
  <p>I tried something like the below but haven't managed to make it work</p>
  
  <pre><code>var injector = ReflectiveInjector.resolveAndCreate([ComponentFactoryResolver, ViewContainerRef]);
  </code></pre>