From 74ede9aa9b8c6871d7587882d0937d2413a2ee95 Mon Sep 17 00:00:00 2001 From: Tobias Bosch Date: Tue, 1 Nov 2016 10:29:25 -0700 Subject: [PATCH] =?UTF-8?q?refactor(core):=20don=E2=80=99t=20store=20view?= =?UTF-8?q?=20factory=20in=20`TemplateRef`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Instead, generate `createEmbeddedView`. --- .../common/test/directives/ng_for_spec.ts | 2 +- .../src/view_compiler/compile_element.ts | 8 ++--- .../src/view_compiler/compile_view.ts | 2 +- .../src/view_compiler/view_builder.ts | 30 +++++++++++++++++-- modules/@angular/core/src/linker/element.ts | 5 ++-- .../@angular/core/src/linker/template_ref.ts | 11 +++---- modules/@angular/core/src/linker/view.ts | 5 ++++ .../ng2_static_ftl/tree_root.ngfactory.ts | 11 +++++-- 8 files changed, 54 insertions(+), 20 deletions(-) diff --git a/modules/@angular/common/test/directives/ng_for_spec.ts b/modules/@angular/common/test/directives/ng_for_spec.ts index b5c209b8c9..5930ae10cf 100644 --- a/modules/@angular/common/test/directives/ng_for_spec.ts +++ b/modules/@angular/common/test/directives/ng_for_spec.ts @@ -264,7 +264,7 @@ export function main() { })); it('should use a default template if a custom one is null', async(() => { - const testTemplate = `