I am trying to create a game application with Ionic 2 (which uses TypeScript) and Phaser.io. So far everything was good and my game works but ...
I can launch Phaser action inside a TypeScript function but I can't do the contrary.
For example, I have a score defined in my html by {{ score }} inside my TypeScript controller I init this score with this.score = 0; Then I can update the score inside a TypeScript function. But inside any phaser function (preload,create,update,render) it doesn't work any more. An example in the image below (which is a similar simpler version of my code).
Thanks.