Local Variables

Hi,
you wrote that:

Local variables (new in version 3.0)
var myVariable = SomeFunction(arg1, arg2); SomeMethod(myVariable)
Note: Variables are by design single-assignable (immutable). Variables may shadow property names and previously defined variables.

Can I use this variable in data binding somehow?

for example:

{{value: myVariable}}

The variables are local to the binding where it’s declared. All bindings are independent of each other. If you need to share a value between bindings, you can store it in ViewModel. Alternatively, markup control properties can be used to simulate a shared (constant) variable.