string interpolation in sample

This commit is contained in:
Dima Granetchi
2014-11-30 13:55:06 +02:00
parent 0200054ddd
commit 8070224d9d
+1 -1
View File
@@ -23,7 +23,7 @@ class UserView {
user = value;
if (user != null) {
// BindExt.exprTo auto dispatch first time
unbindOldUser = BindExt.exprTo("Hello " + user.name + ". You have " + user.coins + " coins", this.textField.text);
unbindOldUser = BindExt.exprTo('Hello ${user.name}. You have ' + user.coins + " coins", this.textField.text);
Bind.bind(user.health, onHealthChange);
// manual dispatch