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:
parent
d98b1c3bc4
commit
d723a69b31
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue