From 3c9a46c231e8bc4193a7ae7e2baf1a5bac0a9b53 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Fri, 24 Feb 2017 13:03:55 -0800 Subject: [PATCH] fix(core): fix directive instantiation (#14715) this issue was discovered in g3 and the patch was confirmed there. we should add a test as a followup up change. --- modules/@angular/core/src/view/view.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/@angular/core/src/view/view.ts b/modules/@angular/core/src/view/view.ts index 4c6815c9a8..1a9f35edfe 100644 --- a/modules/@angular/core/src/view/view.ts +++ b/modules/@angular/core/src/view/view.ts @@ -314,7 +314,7 @@ function createViewNodes(view: ViewData) { nodeData = {instance}; if (nodeDef.flags & NodeFlags.IsComponent) { const compView = asElementData(view, nodeDef.parent.index).componentView; - initView(componentView, instance, instance); + initView(compView, instance, instance); } break; }