From d723a69b31554db4f5fc48c5ae48e52bd3f4f6c9 Mon Sep 17 00:00:00 2001 From: Alex Rickabaugh Date: Mon, 2 Jul 2018 11:26:16 -0700 Subject: [PATCH] fix(ivy): animations should not be a hard error yet (#24738) Previously the Ivy template compiler would throw on encountering an animation binding (e.g. [@anim]). This is unneccessary and precludes testing existing code. This commit changes the error to a warning. PR Close #24738 --- packages/compiler/src/render3/view/template.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/compiler/src/render3/view/template.ts b/packages/compiler/src/render3/view/template.ts index 3704c2b7f2..ed55319205 100644 --- a/packages/compiler/src/render3/view/template.ts +++ b/packages/compiler/src/render3/view/template.ts @@ -489,7 +489,8 @@ export class TemplateDefinitionBuilder implements t.Visitor, LocalResolver // Generate element input bindings allOtherInputs.forEach((input: t.BoundAttribute) => { if (input.type === BindingType.Animation) { - this._unsupported('animations'); + console.error('warning: animation bindings not yet supported'); + return; } const convertedBinding = this.convertPropertyBinding(implicit, input.value);