This can’t work because the text element doesn’t handle your variable like a model. If you want to see the changed text you need to set the text property of Text element again. But your variable value should be changed. You can test it with a simple console.log
↧