fix(ivy): generate bind calls for property bindings (#23403)

PR Close #23403
This commit is contained in:
Kara Erickson
2018-04-16 15:29:42 -07:00
committed by Jason Aden
parent 010a4efa8c
commit 7f612fc828
3 changed files with 88 additions and 3 deletions

View File

@ -722,7 +722,7 @@ class TemplateDefinitionBuilder implements TemplateAstVisitor, LocalResolver {
// TODO(chuckj): runtime: security context?
this.instruction(
this._bindingMode, input.sourceSpan, instruction, o.literal(elementIndex),
o.literal(input.name), convertedBinding);
o.literal(input.name), o.importExpr(R3.bind).callFn([convertedBinding]));
} else {
this.unsupported(`binding ${PropertyBindingType[input.type]}`);
}