I am looking for a way to get a ComponentRef component in my angular1 and 2 hybrid application. Since I should use the UpgradeAdapter boot file and not angular2, I do not get a promise with the ComponentRef component from the root back from the boot function. I tried pasting it into my component:
constructor(@Inject(ComponentRef) ref){
}
This referrer does not seem right yet. All methods and properties on it raise an exception: error uncaught unimplemented.
I am using RC1.
source
share