refactor(ivy): move id to TView (#24264)

PR Close #24264
This commit is contained in:
Kara Erickson
2018-06-01 19:28:20 -07:00
committed by Victor Berchet
parent cb65724761
commit 5794506c64
6 changed files with 35 additions and 26 deletions

View File

@ -700,7 +700,7 @@ export function getOrCreateTemplateRef<T>(di: LInjector): viewEngine_TemplateRef
const hostTNode = hostNode.tNode;
const hostTView = hostNode.view.tView;
if (!hostTNode.tViews) {
hostTNode.tViews = createTView(hostTView.directiveRegistry, hostTView.pipeRegistry);
hostTNode.tViews = createTView(-1, hostTView.directiveRegistry, hostTView.pipeRegistry);
}
ngDevMode && assertNotNull(hostTNode.tViews, 'TView must be allocated');
di.templateRef = new TemplateRef<any>(