What is the proper way of binding an input field to an int property on an object (e.g. input box changes and updates int property of an object causing another element who is
I think the answer above is the right way, but I am using this instead of the Transformer:
class MyPolymerExpressions extends PolymerExpressions {
MyPolymerExpressions(): super(globals: {
'intToString': (int input) => '$input',
});
@override
prepareBinding(String path, name, node) => Polymer.prepareBinding(path, name, node, super.prepareBinding);
}
and add this line in de calc.dart :
@override PolymerExpressions syntax = new MyPolymerExpressions();
Note: in order to use PolymerExpressions, you need:
import 'package:polymer_expressions/polymer_expressions.dart';