bindRenderOutputs function

void bindRenderOutputs(
  1. List<Binding> outputs,
  2. CompileElement compileElement
)

Implementation

void bindRenderOutputs(
    List<ir.Binding> outputs, CompileElement compileElement) {
  var converter = BoundValueConverter.forView(compileElement.view!);
  for (var output in outputs) {
    var handlerExpr = converter
        .scopeNamespace()
        .convertSourceToExpression(output.source, output.target.type)!;
    compileElement.view!
        .addEventListener(compileElement.renderNode, output, handlerExpr);
  }
}