Ah that is also interesting! Well, I understand the problem now and I know the difference between property binding and javascript asignment.
What I’m asking myself is, why isn’t it possible to use the property binding operator (image.source: …) in a JS statement (like in my example: onClicked:) ? Or the other way round, why is assignment (image.source = …) only possible within a JS statement?
Is there any reason for that?
↧