diff --git a/modules/core/src/compiler/pipeline/view_splitter.js b/modules/core/src/compiler/pipeline/view_splitter.js index 627c396fe8..21caed37db 100644 --- a/modules/core/src/compiler/pipeline/view_splitter.js +++ b/modules/core/src/compiler/pipeline/view_splitter.js @@ -45,7 +45,9 @@ export class ViewSplitter extends CompileStep { if (current.element instanceof TemplateElement) { if (!current.isViewRoot) { var viewRoot = new CompileElement(DOM.createTemplate('')); - this._moveChildNodes(current.element.content, viewRoot.element.content); + var currentElement:TemplateElement = current.element; + var viewRootElement:TemplateElement = viewRoot.element; + this._moveChildNodes(currentElement.content, viewRootElement.content); viewRoot.isViewRoot = true; control.addChild(viewRoot); } diff --git a/modules/core/src/compiler/view.js b/modules/core/src/compiler/view.js index 652786c499..2ccf8a749a 100644 --- a/modules/core/src/compiler/view.js +++ b/modules/core/src/compiler/view.js @@ -38,7 +38,7 @@ export class View { viewPorts: List; preBuiltObjects: List; proto: ProtoView; - context: Object; + context: any; contextWithLocals:ContextWithVariableBindings; constructor(proto:ProtoView, nodes:List, protoRecordRange:ProtoRecordRange, protoContextLocals:Map) { this.proto = proto;