@@ -22,6 +22,7 @@ import {assertNodeInjector} from '../render3/assert';
2222import { ComponentFactory as R3ComponentFactory } from '../render3/component_ref' ;
2323import { getComponentDef } from '../render3/def_getters' ;
2424import { getParentInjectorLocation , NodeInjector } from '../render3/di' ;
25+ import { nativeInsertBefore } from '../render3/dom_node_manipulation' ;
2526import {
2627 CONTAINER_HEADER_OFFSET ,
2728 DEHYDRATED_VIEWS ,
@@ -51,7 +52,6 @@ import {
5152} from '../render3/interfaces/view' ;
5253import { assertTNodeType } from '../render3/node_assert' ;
5354import { destroyLView } from '../render3/node_manipulation' ;
54- import { nativeInsertBefore } from '../render3/dom_node_manipulation' ;
5555import { getCurrentTNode , getLView } from '../render3/state' ;
5656import {
5757 getParentInjectorIndex ,
@@ -70,15 +70,15 @@ import {
7070 throwError ,
7171} from '../util/assert' ;
7272
73+ import { RuntimeError , RuntimeErrorCode } from '../errors' ;
74+ import { Binding , DirectiveWithBindings } from '../render3/dynamic_bindings' ;
75+ import { addToEndOfViewTree } from '../render3/view/construction' ;
76+ import { addLViewToLContainer , createLContainer , detachView } from '../render3/view/container' ;
7377import { ComponentFactory , ComponentRef } from './component_factory' ;
7478import { createElementRef , ElementRef } from './element_ref' ;
7579import { NgModuleRef } from './ng_module_factory' ;
7680import { TemplateRef } from './template_ref' ;
7781import { EmbeddedViewRef , ViewRef } from './view_ref' ;
78- import { addLViewToLContainer , createLContainer , detachView } from '../render3/view/container' ;
79- import { addToEndOfViewTree } from '../render3/view/construction' ;
80- import { Binding , DirectiveWithBindings } from '../render3/dynamic_bindings' ;
81- import { RuntimeError , RuntimeErrorCode } from '../errors' ;
8282
8383/**
8484 * Represents a container where one or more views can be attached to a component.
@@ -333,11 +333,7 @@ export function injectViewContainerRef(): ViewContainerRef {
333333 return createContainerRef ( previousTNode , getLView ( ) ) ;
334334}
335335
336- const VE_ViewContainerRef = ViewContainerRef ;
337-
338- // TODO(alxhub): cleaning up this indirection triggers a subtle bug in Closure in g3. Once the fix
339- // for that lands, this can be cleaned up.
340- const R3ViewContainerRef = class ViewContainerRef extends VE_ViewContainerRef {
336+ class R3ViewContainerRef extends ViewContainerRef {
341337 constructor (
342338 private _lContainer : LContainer ,
343339 private _hostTNode : TElementNode | TContainerNode | TElementContainerNode ,
@@ -694,7 +690,7 @@ const R3ViewContainerRef = class ViewContainerRef extends VE_ViewContainerRef {
694690 }
695691 return index ;
696692 }
697- } ;
693+ }
698694
699695function getViewRefs ( lContainer : LContainer ) : ViewRef [ ] | null {
700696 return lContainer [ VIEW_REFS ] as ViewRef [ ] ;
0 commit comments