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
This commit is contained in:
Alex Rickabaugh 2018-07-02 11:26:16 -07:00 committed by Matias Niemelä
parent d98b1c3bc4
commit d723a69b31
1 changed files with 2 additions and 1 deletions

View File

@ -489,7 +489,8 @@ export class TemplateDefinitionBuilder implements t.Visitor<void>, LocalResolver
// Generate element input bindings // Generate element input bindings
allOtherInputs.forEach((input: t.BoundAttribute) => { allOtherInputs.forEach((input: t.BoundAttribute) => {
if (input.type === BindingType.Animation) { if (input.type === BindingType.Animation) {
this._unsupported('animations'); console.error('warning: animation bindings not yet supported');
return;
} }
const convertedBinding = this.convertPropertyBinding(implicit, input.value); const convertedBinding = this.convertPropertyBinding(implicit, input.value);