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.
This commit is contained in:
Igor Minar 2017-02-24 13:03:55 -08:00 committed by GitHub
parent 436a179552
commit 3c9a46c231
1 changed files with 1 additions and 1 deletions

View File

@ -314,7 +314,7 @@ function createViewNodes(view: ViewData) {
nodeData = <ProviderData>{instance};
if (nodeDef.flags & NodeFlags.IsComponent) {
const compView = asElementData(view, nodeDef.parent.index).componentView;
initView(componentView, instance, instance);
initView(compView, instance, instance);
}
break;
}