Something like this: Code: let label = this.entity().component('Label'); label.setText('Hello World');