Skip to content
Permalink
Browse files

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
  • Loading branch information...
petebacondarwin authored and kara committed Mar 7, 2019
1 parent b73e020 commit c7e4931f324a68421942dfd0bb3f750ed66dd4f0
Showing with 2 additions and 2 deletions.
  1. +2 −2 packages/compiler/src/render3/r3_ast.ts
@@ -193,8 +193,8 @@ export class TransformVisitor implements Visitor<Node> {
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);

0 comments on commit c7e4931

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.