style(ngUpgrade): small cleanup
This commit is contained in:
parent
6b564ecda5
commit
85e70a4cde
|
@ -560,7 +560,6 @@ function ng1ComponentDirective(info: ComponentInfo, idPrefix: string): Function
|
||||||
if (!componentFactory)
|
if (!componentFactory)
|
||||||
throw new Error('Expecting ComponentFactory for: ' + info.selector);
|
throw new Error('Expecting ComponentFactory for: ' + info.selector);
|
||||||
|
|
||||||
var domElement = <any>element[0];
|
|
||||||
if (parentInjector === null) {
|
if (parentInjector === null) {
|
||||||
parentInjector = ng1Injector.get(NG2_INJECTOR);
|
parentInjector = ng1Injector.get(NG2_INJECTOR);
|
||||||
}
|
}
|
||||||
|
@ -580,7 +579,7 @@ function ng1ComponentDirective(info: ComponentInfo, idPrefix: string): Function
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Use `UgradeAdapterRef` to control a hybrid AngularJS v1 / Angular v2 application.
|
* Use `UpgradeAdapterRef` to control a hybrid AngularJS v1 / Angular v2 application.
|
||||||
*
|
*
|
||||||
* @experimental
|
* @experimental
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue