4

I'm looking for a way to get the ComponentRef of a component in my angular1 and 2 hybrid app. Because I have to use the UpgradeAdapter bootstrap rather than the angular2 I don't get a promise with the ComponentRef to the root back from bootstrap function. I tried injecting it in to my component:

constructor(@Inject(ComponentRef) ref){
}

This ref doesn't seem to be correct however. All of the methods and properties on it throw an exception: uncaught unimplemented error.

I'm using RC1.

ale
  • 6,369
  • 7
  • 55
  • 65
Keith O
  • 85
  • 6

0 Answers0