From c7e4931f324a68421942dfd0bb3f750ed66dd4f0 Mon Sep 17 00:00:00 2001 From: Pete Bacon Darwin Date: Thu, 7 Mar 2019 08:31:30 +0000 Subject: [PATCH] fix(compiler): ensure template is updated if an output is transformed (#29041) No idea where the tests for this code are, but it looks like this was an oversight in the original commit 6a0f78. PR Close #29041 --- packages/compiler/src/render3/r3_ast.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/compiler/src/render3/r3_ast.ts b/packages/compiler/src/render3/r3_ast.ts index 7595fefc7f..79fd5e4477 100644 --- a/packages/compiler/src/render3/r3_ast.ts +++ b/packages/compiler/src/render3/r3_ast.ts @@ -193,8 +193,8 @@ export class TransformVisitor implements Visitor { const newReferences = transformAll(this, template.references); const newVariables = transformAll(this, template.variables); if (newAttributes != template.attributes || newInputs != template.inputs || - newChildren != template.children || newVariables != template.variables || - newReferences != template.references) { + newOutputs != template.outputs || newChildren != template.children || + newReferences != template.references || newVariables != template.variables) { return new Template( template.tagName, newAttributes, newInputs, newOutputs, newChildren, newReferences, newVariables, template.sourceSpan, template.startSourceSpan, template.endSourceSpan);